package com.onlinecasino;

import java.awt.Dimension;
import java.awt.Image;
import java.awt.Toolkit;
import java.lang.reflect.Method;
import org.apache.log4j.Logger;

import com.onlinecasino.CropImageIcon;
import com.onlinecasino.Utils;
import com.onlinecasino.ClientRoom;
import com.onlinecasino.ClientConfig;

import javax.swing.ImageIcon;

/**
 * <p>Title: </p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2004</p>
 *
 * <p>Company: </p>
 *
 * @author not attributable
 * @version 1.0
 */
public class RouletteRoomSkin
    extends RoomSkin implements java.io.Serializable {

  static Logger _cat = Logger.getLogger(BJRoomSkin.class.getName());

  public static RouletteRoomSkin instance;
  private Dimension scrnsize;
  private double maxWidth = 0;
  private double maxHeight = 0;
  public static int[] p01={352,217};
  public static int[] p02={323,217};
  public static int[] p03={323,432};
  public static int[] p04={352,432};
 
  public static int[] p001={328,391};
  public static int[] p002={344,383};
  public static int[] p003={345,409};
  public static int[] p004={328,414};

  public static int[] p11={384,362};
  public static int[] p12={357,362};
  public static int[] p13={357,428};
  public static int[] p14={384,428};

  public static int[] p21={384,291};
  public static int[] p22={357,291};
  public static int[] p23={357,356};
  public static int[] p24={384,356};

  public static int[] p31={384,219};
  public static int[] p32={357,219};
  public static int[] p33={357,285};
  public static int[] p34={384,285};

  public static int[] p41={417,362};
  public static int[] p42={390,362};
  public static int[] p43={390,426};
  public static int[] p44={417,426};

  public static int[] p51={417,290};
  public static int[] p52={390,290};
  public static int[] p53={390,356};
  public static int[] p54={417,356};

  public static int[] p61={417,219};
  public static int[] p62={389,219};
  public static int[] p63={390,285};
  public static int[] p64={417,284};

  public static int[] p71={451,362};
  public static int[] p72={423,362};
  public static int[] p73={423,427};
  public static int[] p74={451,427};

  public static int[] p81={451,290};
  public static int[] p82={423,290};
  public static int[] p83={423,356};
  public static int[] p84={451,356};

  public static int[] p91={451,219};
  public static int[] p92={423,219};
  public static int[] p93={423,284};
  public static int[] p94={451,284};

  public static int[] p101={484,362};
  public static int[] p102={457,362};
  public static int[] p103={457,427};
  public static int[] p104={484,427};

  public static int[] p111={484,290};
  public static int[] p112={457,290};
  public static int[] p113={457,356};
  public static int[] p114={484,356};

  public static int[] p121={484,219};
  public static int[] p122={457,219};
  public static int[] p123={457,284};
  public static int[] p124={484,284};

  public static int[] p131={517,362};
  public static int[] p132={490,362};
  public static int[] p133={490,427};
  public static int[] p134={517,427};

  public static int[] p141={517,290};
  public static int[] p142={490,290};
  public static int[] p143={490,356};
  public static int[] p144={517,356};

  public static int[] p151={517,219};
  public static int[] p152={490,219};
  public static int[] p153={490,284};
  public static int[] p154={517,284};

  public static int[] p161={551,362};
  public static int[] p162={523,362};
  public static int[] p163={523,427};
  public static int[] p164={551,427};

  public static int[] p171={550,291};
  public static int[] p172={523,291};
  public static int[] p173={523,356};
  public static int[] p174={550,356};

  public static int[] p181={551,219};
  public static int[] p182={523,219};
  public static int[] p183={523,284};
  public static int[] p184={551,284};

  public static int[] p191={584,362};
  public static int[] p192={556,362};
  public static int[] p193={556,427};
  public static int[] p194={584,427};

  public static int[] p201={584,290};
  public static int[] p202={557,290};
  public static int[] p203={557,356};
  public static int[] p204={584,356};

  public static int[] p211={584,219};
  public static int[] p212={557,219};
  public static int[] p213={557,284};
  public static int[] p214={584,284};

  public static int[] p221={616,362};
  public static int[] p222={590,362};
  public static int[] p223={590,427};
  public static int[] p224={616,427};

  public static int[] p231={617,290};
  public static int[] p232={590,290};
  public static int[] p233={590,356};
  public static int[] p234={617,356};


  public static int[] p241={617,219};
  public static int[] p242={590,219};
  public static int[] p243={590,284};
  public static int[] p244={617,284};

  public static int[] p251={651,362};
  public static int[] p252={623,361};
  public static int[] p253={623,428};
  public static int[] p254={651,428};

  public static int[] p261={650,290};
  public static int[] p262={623,290};
  public static int[] p263={623,356};
  public static int[] p264={650,356};

  public static int[] p271={651,219};
  public static int[] p272={623,219};
  public static int[] p273={623,284};
  public static int[] p274={651,284};

  public static int[] p281={684,362};
  public static int[] p282={657,362};
  public static int[] p283={657,427};
  public static int[] p284={684,427};

  public static int[] p291={684,290};
  public static int[] p292={657,290};
  public static int[] p293={656,356};
  public static int[] p294={684,356};

  public static int[] p301={684,219};
  public static int[] p302={657,219};
  public static int[] p303={657,284};
  public static int[] p304={684,284};

  public static int[] p311={717,362};
  public static int[] p312={690,362};
  public static int[] p313={690,427};
  public static int[] p314={717,427};

  public static int[] p321={717,290};
  public static int[] p322={690,290};
  public static int[] p323={690,356};
  public static int[] p324={717,356};

  public static int[] p331={718,219};
  public static int[] p332={690,219};
  public static int[] p333={690,284};
  public static int[] p334={718,284};

  public static int[] p341={750,362};
  public static int[] p342={723,362};
  public static int[] p343={723,427};
  public static int[] p344={750,427};

  public static int[] p351={750,290};
  public static int[] p352={723,290};
  public static int[] p353={723,356};
  public static int[] p354={750,356};

  public static int[] p361={750,219};
  public static int[] p362={723,219};
  public static int[] p363={723,284};
  public static int[] p364={750,284};


  public static int[] p1_2to1_1={787,360};
  public static int[] p1_2to1_2={754,360};
  public static int[] p1_2to1_3={754,432};
  public static int[] p1_2to1_4={787,432};

  public static int[] p2_2to1_1={787,288};
  public static int[] p2_2to1_2={754,288};
  public static int[] p2_2to1_3={754,360};
  public static int[] p2_2to1_4={787,360};

  public static int[] p3_2to1_1={787,217};
  public static int[] p3_2to1_2={754,217};
  public static int[] p3_2to1_3={754,288};
  public static int[] p3_2to1_4={787,288};


  public static int[] p3_12_1={755,433};
  public static int[] p3_12_2={621,433};
  public static int[] p3_12_3={621,478};
  public static int[] p3_12_4={755,478};

  public static int[] p2_12_1={621,432};
  public static int[] p2_12_2={488,432};
  public static int[] p2_12_3={488,478};
  public static int[] p2_12_4={621,478};

  public static int[] p1_12_1={488,432};
  public static int[] p1_12_2={355,432};
  public static int[] p1_12_3={355,478};
  public static int[] p1_12_4={488,478};

  public static int[] p19_36_1={754,478};
  public static int[] p19_36_2={688,478};
  public static int[] p19_36_3={688,524};
  public static int[] p19_36_4={754,524};

  public static int[] pODD_1={688,478};
  public static int[] pODD_2={622,478};
  public static int[] pODD_3={622,524};
  public static int[] pODD_4={688,524};

  public static int[] pRED_1={621,478};
  public static int[] pRED_2={555,478};
  public static int[] pRED_3={555,524};
  public static int[] pRED_4={621,524};

  public static int[] pBLACK_1={555,478};
  public static int[] pBLACK_2={488,478};
  public static int[] pBLACK_3={488,524};
  public static int[] pBLACK_4={555,524};

  public static int[] pEVEN1={488,478};
  public static int[] pEVEN2={422,478};
  public static int[] pEVEN3={422,524};
  public static int[] pEVEN4={488,524};

  public static int[] p1_18_1={422,478};
  public static int[] p1_18_2={355,478};
  public static int[] p1_18_3={355,524};
  public static int[] p1_18_4={422,524};

  public static int[][] poly0 = { p01, p02, p03, p04 };

  public static int[][] poly00 = { p001, p002, p003, p004 };

  public static int[][] poly1 = { p11, p12, p13, p14 };

  public static int[][] poly2 = { p21, p22, p23, p24 };

  public static int[][] poly3 = { p31, p32, p33, p34 };

  public static int[][] poly4 = { p41, p42, p43, p44 };

  public static int[][] poly5 = { p51, p52, p53, p54 };

  public static int[][] poly6 = { p61, p62, p63, p64 };

  public static int[][] poly7 = { p71, p72, p73, p74};

  public static int[][] poly8 = { p81, p82, p83, p84 };

  public static int[][] poly9 = { p91, p92, p93, p94 };

  public static int[][] poly10 = { p101, p102, p103, p104 };

  public static int[][] poly11 = { p111, p112, p113, p114 };

  public static int[][] poly12 = { p121, p122, p123, p124 };

  public static int[][] poly13 = { p131, p132, p133, p134 };

  public static int[][] poly14 = { p141, p142, p143, p144 };

  public static int[][] poly15 = { p151, p152, p153, p154 };

  public static int[][] poly16 = { p161, p162, p163, p164 };

  public static int[][] poly17 = { p171, p172, p173, p174 };

  public static int[][] poly18 = { p181, p182, p183, p184 };

  public static int[][] poly19 = { p191, p192, p193, p194 };

  public static int[][] poly20 = { p201, p202, p203, p204 };

  public static int[][] poly21 = { p211, p212, p213, p214 };

  public static int[][] poly22 = { p221, p222, p223, p224 };

  public static int[][] poly23 = { p231, p232, p233, p234 };

  public static int[][] poly24 = { p241, p242, p243, p244 };

  public static int[][] poly25 = { p251, p252, p253, p254 };

  public static int[][] poly26 = { p261, p262, p263, p264 };

  public static int[][] poly27 = { p271, p272, p273, p274 };

  public static int[][] poly28 = { p281, p282, p283, p284};

  public static int[][] poly29 = { p291, p292, p293, p294 };

  public static int[][] poly30 = { p301, p302, p303, p304 };

  public static int[][] poly31 = { p311, p312, p313, p314 };

  public static int[][] poly32 = { p321, p322, p323, p324 };

  public static int[][] poly33 = { p331, p332, p333, p334 };

  public static int[][] poly34 = { p341, p342, p343, p344 };

  public static int[][] poly35 = { p351, p352, p353, p354 };

  public static int[][] poly36 = { p361, p362, p363, p364 };

  public static int[][] poly_2to1_1 = { p1_2to1_1, p1_2to1_2,
                  p1_2to1_3, p1_2to1_4 };

  public static int[][] poly_2to1_2 = { p2_2to1_1, p2_2to1_2,
                  p2_2to1_3, p2_2to1_4 };

  public static int[][] poly_2to1_3 = { p3_2to1_1, p3_2to1_2,
                  p3_2to1_3, p3_2to1_4 };

  public static int[][] poly_12_3 = { p3_12_1, p3_12_2, p3_12_3,
                  p3_12_4 };

  public static int[][] poly_12_2 = { p2_12_1, p2_12_2, p2_12_3,
                  p2_12_4 };

  public static int[][] poly_12_1 = { p1_12_1, p1_12_2, p1_12_3,
                  p1_12_4 };

  public static int[][] poly_19_36 = { p19_36_1, p19_36_2,
                  p19_36_3, p19_36_4 };

  public static int[][] poly_ODD = { pODD_1, pODD_2, pODD_3, pODD_4 };

  public static int[][] poly_RED = { pRED_1, pRED_2, pRED_3, pRED_4 };

  public static int[][] poly_BLACK = { pBLACK_1, pBLACK_2,
                  pBLACK_3, pBLACK_4 };

  public static int[][] poly_EVEN = { pEVEN1, pEVEN2, pEVEN3, pEVEN4};

  public static int[][] poly_1_18 = { p1_18_1, p1_18_2, p1_18_3,
                  p1_18_4 };

  public static final int[] rc0={433,158,452,174};
  public static final int[] rc00={495,195,518,213};
  public static final int[] rc1={396,167,410,183};
  public static final int[] rc2={413,195,456,203};
  public static final int[] rc3={455,221,511,231};
  public static final int[] rc4={349,184,401,194};
  public static final int[] rc5={386,212,443,221};
  public static final int[] rc6={427,239,483,248};
  public static final int[] rc7={320,202,375,210};
  public static final int[] rc8={360,228,415,238};
  public static final int[] rc9={401,256,458,267};
  public static final int[] rc10={293,218,350,229};
  public static final int[] rc11={332,245,389,256};
  public static final int[] rc12={372,275,430,285};
  public static final int[] rc13={265,235,319,245};
  public static final int[] rc14={302,264,359,274};
  public static final int[] rc15={343,293,401,305};
  public static final int[] rc16={234,253,290,263};
  public static final int[] rc17={273,281,331,292};
  public static final int[] rc18={313,312,371,321};
  public static final int[] rc19={204,270,261,282};
  public static final int[] rc20={242,300,301,312};
  public static final int[] rc21={283,332,344,343};
  public static final int[] rc22={172,289,229,299};
  public static final int[] rc23={232,316,253,337};
  public static final int[] rc24={250,352,312,363};
  public static final int[] rc25={140,308,199,319};
  public static final int[] rc26={179,340,240,351};
  public static final int[] rc27={219,371,282,385};
  public static final int[] rc28={109,327,167,338};
  public static final int[] rc29={145,359,206,370};
  public static final int[] rc30={186,392,249,405};
  public static final int[] rc31={75,347,134,358};
  public static final int[] rc32={112,380,175,392};
  public static final int[] rc33={152,415,217,428};
  public static final int[] rc34={39,368,101,379};
  public static final int[] rc35={78,401,140,413};
  public static final int[] rc36={117,437,182,449};
  public static final int[] rcRED={360,406,418,422};
  public static final int[] rcBlack={430,354,477,388};
  public static final int[] rcEven={484,316,525,348};
  public static final int[] rcOdd={305,440,337,485};
  public static final int[] rcF18={546,274,579,308};
  public static final int[] rcN18={240,484,269,534};
  public static final int[] rcFLine={2,389,71,402};
  public static final int[] rcSLine={50,415,110,438};
  public static final int[] rcTLine={79,460,151,474};
  public static final int[] rcF12={459,269,519,295};
  public static final int[] rcS12={327,359,377,390};
  public static final int[] rcT12_1={227,420,287,456};
  public static final int[] rcT12_2={196,455,226,493};

public static int[][] rc_0_00_1_2_3={{354,431},{354,422}};//for 0,00,1,2,3


////selecting StreetPairs i.e 6 numbers={2 streets}

public static int[][] rcstpair1={{385,431},{388,422}};//1 to 6
public static int[][] rcstpair2={{421,431},{421,422}};//4 to 9
public static int[][] rcstpair3={{455,431},{455,422}};//7 to 12
public static int[][] rcstpair4={{488,431},{488,422}};//10 to 15
public static int[][] rcstpair5={{521,431},{521,422}};//13 to 18
public static int[][] rcstpair6={{554,431},{554,422}};//16 to 21
public static int[][] rcstpair7={{587,431},{587,422}};//19 to 24
public static int[][] rcstpair8={{621,431},{621,422}};//22 to 27
public static int[][] rcstpair9={{653,431},{653,422}};//25 to 30
public static int[][] rcstpair10={{687,431},{687,422}};//28 to 33
public static int[][] rcstpair11={{721,431},{721,422}};//31 to 36

  public static final int[][][] reg_six_nos =
    {rcstpair1,
    rcstpair2,
    rcstpair3,
    rcstpair4,
    rcstpair5,
    rcstpair6,
    rcstpair7,
    rcstpair8,
    rcstpair9,
    rcstpair10,
    rcstpair11};


  ////////
  public static final int[]   POS_RED      ={360,406,418,422};
  public static final int[]   POS_Black    ={430,354,477,388};
  public static final int[]   POS_Even     ={484,316,525,348};
  public static final int[]   POS_Odd      ={305,440,337,485};
  public static final int[]   POS_F18      ={546,274,579,308};
  public static final int[]   POS_N18      ={240,484,269,534};
  public static final int[]   POS_FLine    ={2,389,71,402};
  public static final int[]   POS_SLine    ={50,415,110,438};
  public static final int[]   POS_TLine    ={79,460,151,474};
  public static final int[]   POS_F12      ={459,269,519,295};
  public static final int[]   POS_S12      ={327,359,377,390};
  public static final int[]   POS_TLine_1  ={227,420,287,456};
  public static final int[]   POS_TLine_2  ={196,455,226,493};

  public static  int region_coords[][]={{318,292},{359,382},{358,317},{359,243},{393,382},{392,317},{392,243},
      {426,382},{425,317},{425,243},{458,382},{458,317},{461,243},{492,382},//13
      {491,317},{491,243},{525,382},{524,317},{524,243},{557,382},{557,317},//20
      {558,243},{591,382},{591,317},{591,243},{626,382},{625,317},{625,243},//27
      {656,382},{657,317},{657,243},{689,382},{692,317},{692,243},{725,382},//34
      {724,317},{725,243},{318,292},														// 0 - 37		type 1
      
      {757,379},{758,309},{760,242}													//type 8   38-40
      ,{635,437},{505,435},{375,438}												//type 7    41- 43
      ,{697,487},{629,484},{563,485},{494,487},{427,486},{360,484},			//type 0    44-49
      
      {359,351},{393,349},{426,349},{461,349},{494,349},{527,350},
      {560,349},{594,349},{629,349},{660,349},{694,349},{727,348},
      {359,276},{393,276},{426,276},{461,276},{494,276},{527,276},
      {560,276},{594,276},{629,276},{660,276},{694,276},{727,276},		//type 2    reg 50 - 73
      
      {318,292},							//74
      {347,382}                         		 //75
      
      ,{380,384},{413,384},{447,384},{479,384},{510,384},					
      {548,384},{579,384},{614,384},{648,384},{680,384},{713,384},			//76-86
      
      {348,310},//87
      {380,308},{413,308},{447,308},{479,308},{510,308},
      {548,308},{579,308},{614,308},{648,308},{680,308},{713,308},				//88-98   type 2  
      
      
      {348,239},                                         //99
      {380,240},{413,240},{447,240},{479,240},{510,240},
      {548,240},{579,240},{614,240},{648,240},{680,240},{713,240} 	//100-110
      
      ,{349,313},{349,313},{348,352},{347,282},									//111-114
      
      
      {360,201},{395,201},{429,201},{460,201},{493,201},{529,201},
      {559,201},{594,201},{627,201},{661,201},{694,201},{727,201},           //type 3  reg 115-126
      
      
      
      {382,352},{416,352},{445,352},{480,352},{513,352},{546,352},						
      {581,352},{613,352},{647,352},{680,352},{713,352},    
      
      {382,280},{416,280},{445,280},{480,280},{513,280},{546,280},
      {581,280},{613,280},{647,280},{680,280},{713,280},					//127-149
          
      {382,425},{416, 425},{445, 425},{480, 425},{513, 425},
      {546, 425},{581, 425},{613, 425},{647, 425},{680, 425},{713, 425},								//150-160
          {348, 425}    //161
  };
  
  
  
  
  //////Giving The Co-Ordinates for the line street

  public static final int c[][]={{406,141},{372,153},{411,178},{450,203},{347,169},{386,194},{425,219},
                {320,187},{359,212},{398,237},{290,202},{330,229},{369,257},{263,220},
                {303,247},{342,275},{233,239},{273,266},{312,294},{203,257},{243,286},
                {282,314},{173,274},{211,304},{252,335},{142,293},{179,324},{219,357},
                {107,313},{146,344},{187,378},{76,332},{114,365},{153,400},{41,352},
                            {80,387},{120,422},{470,183}};   

////Co-ordinates for coins for each rectangle

  public static final int a[][]={{425,154},{390,164},{431,190},{471,215},{366,182},{406,207},{446,234},
                {334,196},{379,224},{418,252},{309,214},{350,243},{388,269},{282,229},
                {321,259},{363,287},{250,251},{293,279},{334,304},{224,269},{261,296},
                {301,329},{191,283},{232,315},{270,344},{162,302},{197,337},{240,368},
                {129,320},{167,355},{208,391},{96,342},{132,379},{172,411},{60,364},
                            {98,399},{138,435},{491,194}};


/////Co-ordinates for the marker for each rectangle

  public static final int b[][]={{318,292},{359,382},{358,317},{359,243},{393,382},{392,317},{392,243},
      {426,382},{425,317},{425,243},{458,382},{458,317},{461,243},{492,382},//13
      {491,317},{491,243},{525,382},{524,317},{524,243},{557,382},{557,317},//20
      {558,243},{591,382},{591,317},{591,243},{626,382},{625,317},{625,243},//27
      {656,382},{657,317},{657,243},{689,382},{692,317},{692,243},{725,382},//34
      {724,317},{725,243},{318,292}};

//Coordinates for the glows for corners

  public static final int d[][]={{347,153},{319,170},{292,187},{263,202},{235,220},{205,240},{174,257},
                {144,275},{113,297},{80,318},{47,337},{385,180},{399,240},{334,214},
                {305,232},{275,250},{246,271},{216,288},{183,309},{153,328},{120,347},
                {88,371}};

//Coordinates for the coins for corners

  public static final int coincorner[][]={{396,185},{370,203},{342,219},{315,236},{284,253},{254,272},
                    {223,290},{193,307},{159,330},{127,350},{93,367},{440,211},
                    {409,229},{381,247},{353,267},{325,285},{295,301},{268,319},
                    {231,341},{198,362},{166,381},{136,406}};          ////127-149

//Co-ordinates for the coins to street bets

  public static final int coinstbet[][]={{372,152},{345,165},{319,181},{290,200},{261,216},{233,234},
                        {201,252},{171,271},{140,287},{107,307},{74,328},{40,346},           //type 3  reg 115-126
                        
                        {410,176},{383,194},{355,210},{328,227},{300,245},{266,262},
                        {239,281},{208,299},{177,321},{147,337},{110,360},{75,381},
                        {450,203},{422,219},{394,239},{365,257},{338,274},{310,291},
                        {381,313},{250,330},{216,353},{185,373},{150,394},{116,419}};		//type 2    reg 50 - 73

//Co-Ordinates for the coins in rows

  public static final int coinrowbet[][]={{404,156},{378,173},{349,187},{322,205},{297,220},{264,237},
                         {238,257},{206,276},{177,296},{143,314},{109,333},{75,353},
                         {441,185},{416,198},{393,215},{363,232},{335,250},{305,267},
                         {276,286},{242,307},{214,326},{181,345},{149,368},{115,390},
                         {483,206},{458,226},{433,243},{403,260},{376,279},{347,299},
                       {314,317},{285,336},{254,357},{221,378},{190,397},{156,422}};      //36

  public static final int POS_0cx = 406;
  public static final int POS_0cy = 141;

  public static final int POS_00cx = 470;
  public static final int POS_00cy = 183;

  public static final int POS_1cx = 372;
  public static final int POS_1cy = 153;

  public static final int POS_2cx = 411;
  public static final int POS_2cy = 178;

  public static final int POS_3cx = 450;
  public static final int POS_3cy = 203;

  public static final int POS_4cx = 347;
  public static final int POS_4cy = 169;

  public static final int POS_5cx = 386;
  public static final int POS_5cy = 194;

  public static final int POS_6cx = 425;
  public static final int POS_6cy = 219;

  public static final int POS_7cx = 320;
  public static final int POS_7cy = 187;

  public static final int POS_8cx = 359;
  public static final int POS_8cy = 212;

  public static final int POS_9cx = 398;
  public static final int POS_9cy = 237;

  public static final int POS_10cx = 290;
  public static final int POS_10cy = 202;

  public static final int POS_11cx = 330;
  public static final int POS_11cy = 229;

  public static final int POS_12cx = 369;
  public static final int POS_12cy = 257;

  public static final int POS_13cx = 263;
  public static final int POS_13cy = 220;

  public static final int POS_14cx = 303;
  public static final int POS_14cy = 247;

  public static final int POS_15cx = 342;
  public static final int POS_15cy = 275;

  public static final int POS_16cx = 233;
  public static final int POS_16cy = 239;

  public static final int POS_17cx = 273;
  public static final int POS_17cy = 266;

  public static final int POS_18cx = 312;
  public static final int POS_18cy = 294;

  public static final int POS_19cx = 203;
  public static final int POS_19cy = 257;

  public static final int POS_20cx = 243;
  public static final int POS_20cy = 286;

  public static final int POS_21cx = 282;
  public static final int POS_21cy = 314;

  public static final int POS_22cx = 173;
  public static final int POS_22cy = 274;

  public static final int POS_23cx = 211;
  public static final int POS_23cy = 304;

  public static final int POS_24cx = 252;
  public static final int POS_24cy = 335;

  public static final int POS_25cx = 142;
  public static final int POS_25cy = 293;

  public static final int POS_26cx = 179;
  public static final int POS_26cy = 324;

  public static final int POS_27cx = 219;
  public static final int POS_27cy = 357;

  public static final int POS_28cx = 107;
  public static final int POS_28cy = 313;

  public static final int POS_29cx = 146;
  public static final int POS_29cy = 344;

  public static final int POS_30cx = 187;
  public static final int POS_30cy = 378;

  public static final int POS_31cx = 76;
  public static final int POS_31cy = 332;

  public static final int POS_32cx = 114;
  public static final int POS_32cy = 365;

  public static final int POS_33cx = 153;
  public static final int POS_33cy = 400;

  public static final int POS_34cx = 41;
  public static final int POS_34cy = 352;

  public static final int POS_35cx = 80;
  public static final int POS_35cy = 387;

  public static final int POS_36cx = 120;
  public static final int POS_36cy = 422;

  public static int[][] cor1 = {{
	  388,352}, {388,366}}; /////For1,2,4,5

  public static int[][] cor2 = {{
	  421,352},{ 421,366}}; /////For 4,5,7,8

  public static int[][] cor3 = {{
	  454, 352},{ 454, 366}}; /////For 7,8,10,11

  public static int[][] cor4 = {{
	  488, 352},{ 488, 366}}; /////For 10,11,13,14

  public static int[][] cor5 = {{
	  521, 352},{ 521, 366}}; /////For 13,14,16,17

  public static int[][] cor6 = {{
	  554, 352},{ 554, 366}}; /////For 16,17,19,20

  public static int[][] cor7 = {{
	  587, 352},{ 587, 366}}; /////For 19,20,22,23

  public static int[][] cor8 = {{
	  621, 352},{ 621, 366}}; /////For 22,23,25,26

  public static int[][] cor9 = {{
	  654, 352},{ 654, 366}}; /////For 25,26,28,29

  public static int[][] cor10 = {{
	  687, 352},{ 687, 366}}; /////For 28,29,31,32

  public static int[][] cor11 = {{
	  720, 352},{ 720, 366}}; /////For 31,32,34,35

  public static int[][] cor12 = {{
	  388,281},{ 388,293}}; /////For 2,3,5,6

  public static int[][] cor13 = {{
	  421,281},{ 421,293}}; /////For 5,6,8,9

  public static int[][] cor14 = {{
      454, 281},{ 454, 293}}; /////For 8,9,11,12

  public static int[][] cor15 = {{
      488, 281},{ 488, 293}}; /////For 11,12,14,15

  public static int[][] cor16 = {{
      521, 281},{ 521, 293}}; /////For 14,15,17,18

  public static int[][] cor17 = {{
      554, 281},{ 554, 293}}; /////For 17,18,20,21

  public static int[][] cor18 = {{
      587, 281},{ 587, 293}}; /////For 20,21,23,24

  public static int[][] cor19 = {{
      621, 281},{ 621, 293}}; /////For 23,24,26,27

  public static int[][] cor20 = {{
      654, 281},{ 654, 293}}; /////For 26,27,29,30

  public static int[][] cor21 = {{
      687, 281},{ 687, 293}}; /////For 29,30,32,33

  public static int[][] cor22 = {{
      720, 281},{ 720, 293}}; /////For 32,33,35,36

  public static int[][][] reg_four_nos =   {cor1,
    cor2,
    cor3,
    cor4,
    cor5,
    cor6,
    cor7,
    cor8,
    cor9,
    cor10,
    cor11,
    cor12,
    cor13,
    cor14,
    cor15,
    cor16,
    cor17,
    cor18,
    cor19,
    cor20,
    cor21,
    cor22};

  public static int[][] rc2_0_00={{356,314},{356,337}};//for 0,00,2
  public static int[][] rc_0_1_2={{356,355},{356,368}};//for 0,1,2
  public static int[][] rc_00_2_3={{356,281},{356,297}};//for 00,2,3


//public static final int[] ptsts1_1={371,170};             ////1,2,3
//public static final int[] ptsts1_2={396,155};
  public static int[] ptsts1_1 = {
	  361,215};
  public static int[] ptsts1_2 = {
	  378,215};
  public static int[][] lst1 = {
      ptsts1_1, ptsts1_2};

//public static int[] ptsts2_1={343,186};            ////4,5,6
//public static int[] ptsts2_2={371,170};
  public static int[] ptsts2_1 = {
	  394, 215};
  public static int[] ptsts2_2 = {
	  412, 215};
  public static int[][] lst2 = {
      ptsts2_1, ptsts2_2};

//public static int[] ptsts3_1={317,202};			  ////7,8,9
//public static int[] ptsts3_2={343,187};
  public static int[] ptsts3_1 = {
	  428, 215};
  public static int[] ptsts3_2 = {
      443, 215};
  public static int[][] lst3 = {
      ptsts3_1, ptsts3_2};

//public static int[] ptsts4_1={288,219};			////10,11,12
//public static int[] ptsts4_2={316,203};
  public static int[] ptsts4_1 = {
      459, 215};
  public static int[] ptsts4_2 = {
      477, 215};
  public static int[][] lst4 = {
      ptsts4_1, ptsts4_2};

//public static int[] ptsts5_1={259,236};			////13,14,15
//public static int[] ptsts5_2={287,220};
  public static int[] ptsts5_1 = {
      494, 215};
  public static int[] ptsts5_2 = {
      513, 215};
  public static int[][] lst5 = {
      ptsts5_1, ptsts5_2};

//public static int[] ptsts6_1={230,254};			////16,17,18
//public static int[] ptsts6_2={258,237};
  public static int[] ptsts6_1 = {
      528, 215};
  public static int[] ptsts6_2 = {
      546, 215};
  public static int[][] lst6 = {
      ptsts6_1, ptsts6_2};

//public static int[] ptsts7_1={199,272};			////19,20,21
//public static int[] ptsts7_2={229,255};
  public static int[] ptsts7_1 = {
      560, 215};
  public static int[] ptsts7_2 = {
      578, 215};
  public static int[][] lst7 = {
      ptsts7_1, ptsts7_2};

//public static int[] ptsts8_1={168,290};			////22,23,24
//public static int[] ptsts8_2={198,273};
  public static int[] ptsts8_1 = {
      596, 215};
  public static int[] ptsts8_2 = {
      513, 215};
  public static int[][] lst8 = {
      ptsts8_1, ptsts8_2};

//public static int[] ptsts9_1={136,309};			////25,26,27
//public static int[] ptsts9_2={167,291};
  public static int[] ptsts9_1 = {
      627, 215};
  public static int[] ptsts9_2 = {
      646, 215};
  public static int[][] lst9 = {
      ptsts9_1, ptsts9_2};

//public static int[] ptsts10_1={103,328};		////28,29,30
//public static int[] ptsts10_2={135,310};
  public static int[] ptsts10_1 = {
      662, 215};
  public static int[] ptsts10_2 = {
      680, 215};
  public static int[][] lst10 = {
      ptsts10_1, ptsts10_2};

//public static int[] ptsts11_1={70,348};			////31,32,33
//public static int[] ptsts11_2={102,327};
  public static int[] ptsts11_1 = {
      695, 215};
  public static int[] ptsts11_2 = {
      713, 215};
  public static int[][] lst11 = {
      ptsts11_1, ptsts11_2};

//public static int[] ptsts12_1={36,368};			////34,35,36
//public static int[] ptsts12_2={69,349};
  public static int[] ptsts12_1 = {
      729, 215};
  public static int[] ptsts12_2 = {
      746, 215};
  public static int[][] lst12 = {
      ptsts12_1, ptsts12_2};

  public static int[][][] reg_three_nos =
    {rc2_0_00,
    rc_0_1_2,
    rc_00_2_3,
    lst1,
    lst2,
    lst3,
    lst4,
    lst5,
    lst6,
    lst7,
    lst8,
    lst9,
    lst10,
    lst11,
    lst12};

////Second Street

  public static int[] ptsts2_1_1 = {
	  361,360};
  public static int[] ptsts2_1_2 = {
	  380,360};
  public static int[][] lst13 = {
      ptsts2_1_1, ptsts2_1_2}; //For 1,2

  public static int[] ptsts2_2_1 = {
	  395, 360};
  public static int[] ptsts2_2_2 = {
      414, 360};
  public static int[][] lst14 = {
      ptsts2_2_1, ptsts2_2_2};//for 4,5

  public static int[] ptsts2_3_1 = {
	  429, 360};
  public static int[] ptsts2_3_2 = {
	  446, 360};
  public static int[][] lst15 = {
      ptsts2_3_1, ptsts2_3_2};//for 7,8

  public static int[] ptsts2_4_1 = {
	  461, 360};
  public static int[] ptsts2_4_2 = {
	  480, 360};
  public static int[][] lst16 = {
      ptsts2_4_1, ptsts2_4_2};//for 10,11

  public static int[] ptsts2_5_1 = {
	  495, 360};
  public static int[] ptsts2_5_2 = {
	  513, 360};
  public static int[][] lst17 = {
      ptsts2_5_1, ptsts2_5_2};//for 13,14

  public static int[] ptsts2_6_1 = {
	  527, 360};
  public static int[] ptsts2_6_2 = {
	  547, 360};
  public static int[][] lst18 = {
      ptsts2_6_1, ptsts2_6_2};//for 16,17

  public static int[] ptsts2_7_1 = {
	  560, 360};
  public static int[] ptsts2_7_2 = {
	  580, 360};
  public static int[][] lst19 = {
      ptsts2_7_1, ptsts2_7_2};//for 19,20

  public static int[] ptsts2_8_1 = {
	  595, 360};
  public static int[] ptsts2_8_2 = {
	  614, 360};
  public static int[][] lst20 = {
      ptsts2_8_1, ptsts2_8_2};//for 22,23

  public static int[] ptsts2_9_1 = {
	  628, 360};
  public static int[] ptsts2_9_2 = {
	  646, 360};
  public static int[][] lst21 = {
      ptsts2_9_1, ptsts2_9_2};//for 25,26

  public static int[] ptsts2_10_1 = {
	  659, 360};
  public static int[] ptsts2_10_2 = {
	  680, 360};
  public static int[][] lst22 = {
      ptsts2_10_1, ptsts2_10_2};//for 28,29

  public static int[] ptsts2_11_1 = {
	  693, 360};
  public static int[] ptsts2_11_2 = {
	  715, 360};
  public static int[][] lst23 = {
      ptsts2_11_1, ptsts2_11_2};//for 31,32

  public static int[] ptsts2_12_1 = {
	  727, 360};
  public static int[] ptsts2_12_2 = {
	  744, 360};
  public static int[][] lst24 = {
      ptsts2_12_1, ptsts2_12_2};//for 34,35

//Third Street

  public static int[] ptsts3_1_1 = {
      361, 288};
  public static int[] ptsts3_1_2 = {
      380, 288};
  public static int[][] lst25 = {
      ptsts3_1_1, ptsts3_1_2};//for 2,3

  public static int[] ptsts3_2_1 = {
      393, 288};
  public static int[] ptsts3_2_2 = {
      414, 288};
  public static int[][] lst26 = {
      ptsts3_2_1, ptsts3_2_2};//for 5,6

  public static int[] ptsts3_3_1 = {
      429, 288};
  public static int[] ptsts3_3_2 = {
      447, 288};
  public static int[][] lst27 = {
      ptsts3_3_1, ptsts3_3_2};//for 8,9

  public static int[] ptsts3_4_1 = {
      461, 288};
  public static int[] ptsts3_4_2 = {
      480, 288};
  public static int[][] lst28 = {
      ptsts3_4_1, ptsts3_4_2};//for 11,12

  public static int[] ptsts3_5_1 = {
      493, 288};
  public static int[] ptsts3_5_2 = {
      513, 288};
  public static int[][] lst29 = {
      ptsts3_5_1, ptsts3_5_2};//for 14,15

  public static int[] ptsts3_6_1 = {
      527, 288};
  public static int[] ptsts3_6_2 = {
      547, 288};
  public static int[][] lst30 = {
      ptsts3_6_1, ptsts3_6_2};//for 17,18

  public static int[] ptsts3_7_1 = {
      560, 288};
  public static int[] ptsts3_7_2 = {
      580, 288};
  public static int[][] lst31 = {
      ptsts3_7_1, ptsts3_7_2};//for 20,21

  public static int[] ptsts3_8_1 = {
      595, 288};
  public static int[] ptsts3_8_2 = {
      614, 288};
  public static int[][] lst32 = {
      ptsts3_8_1, ptsts3_8_2};//for 23,24

  public static int[] ptsts3_9_1 = {
      628, 288};
  public static int[] ptsts3_9_2 = {
      646, 288};
  public static int[][] lst33 = {
      ptsts3_9_1, ptsts3_9_2};//for 26,27

  public static int[] ptsts3_10_1 = {
      659, 288};
  public static int[] ptsts3_10_2 = {
      680, 288};
  public static int[][] lst34 = {
      ptsts3_10_1, ptsts3_10_2};//for 29,30

  public static int[] ptsts3_11_1 = {
      693, 288};
  public static int[] ptsts3_11_2 = {
      715, 288};
  public static int[][] lst35 = {
      ptsts3_11_1, ptsts3_11_2};//for 32,33

  public static int[] ptsts3_12_1 = {
      729, 288};
  public static int[] ptsts3_12_2 = {
      744, 288};
  public static int[][] lst36 = {
      ptsts3_12_1, ptsts3_12_2};//for 35,36

//////For First Row Split

  public static int[] ptrspt0_00_1 = {
	  332,314}; //0,00
  public static int[] ptrspt0_00_2 = {
	  347,311};
  public static int[][] rspt0_00 = {
      ptrspt0_00_1, ptrspt0_00_2};

  public static int[] ptrspt0_1_1 = {
	  355,381}; //0,1
  public static int[] ptrspt0_1_2 = {
	  355,413};
  public static int[][] rspt1 = {
      ptrspt0_1_1, ptrspt0_1_2};

  
  
  public static int[] ptrspt1_2_1 = {
	  388,376};
  public static int[] ptrspt1_2_2 = {
	  388,411};
   
  public static int[][] rspt2 = {
      ptrspt1_2_1, ptrspt1_2_2};//for 1,4

  public static int[] ptrspt1_3_1 = {
	  422,382};
  public static int[] ptrspt1_3_2 = {
	  422,410};
  public static int[][] rspt3 = {
      ptrspt1_3_1, ptrspt1_3_2};//for 4,7

  public static int[] ptrspt1_4_1 = {
	  455,382};
  public static int[] ptrspt1_4_2 = {
	  455,410};
  public static int[][] rspt4 = {
      ptrspt1_4_1, ptrspt1_4_2};//for 7,10

  public static int[] ptrspt1_5_1 = {
	  488, 382};
  public static int[] ptrspt1_5_2 = {
	  488, 410};
  public static int[][] rspt5 = {
      ptrspt1_5_1, ptrspt1_5_2};//for 10,13

  public static int[] ptrspt1_6_1 = {
	  521, 382};
  public static int[] ptrspt1_6_2 = {
	  521, 410};
  public static int[][] rspt6 = {
      ptrspt1_6_1, ptrspt1_6_2};//for 13,16

  public static int[] ptrspt1_7_1 = {
      554, 382};
  public static int[] ptrspt1_7_2 = {
      554, 410};
  public static int[][] rspt7 = {
      ptrspt1_7_1, ptrspt1_7_2};//for 16,19

  public static int[] ptrspt1_8_1 = {
      587, 382};
  public static int[] ptrspt1_8_2 = {
      587, 410};
  public static int[][] rspt8 = {
      ptrspt1_8_1, ptrspt1_8_2};//for 19,22

  public static int[] ptrspt1_9_1 = {
      621, 382};
  public static int[] ptrspt1_9_2 = {
      621, 410};
  public static int[][] rspt9 = {
      ptrspt1_9_1, ptrspt1_9_2};//for 22,25

  public static int[] ptrspt1_10_1 = {
      654, 382};
  public static int[] ptrspt1_10_2 = {
      654, 410};
  public static int[][] rspt10 = {
      ptrspt1_10_1, ptrspt1_10_2};//for 25,28

  public static int[] ptrspt1_11_1 = {
      687, 382};
  public static int[] ptrspt1_11_2 = {
      687, 410};
  public static int[][] rspt11 = {
      ptrspt1_11_1, ptrspt1_11_2};//for 28,31

  public static int[] ptrspt1_12_1 = {
      720, 382};
  public static int[] ptrspt1_12_2 = {
      720, 410};
  public static int[][] rspt12 = {
      ptrspt1_12_1, ptrspt1_12_2};//for 31,34

////Second row Split


  public static int[] ptrspt2_2_1 = {
	  388,306};
  public static int[] ptrspt2_2_2 = {
	  388,339};
  public static int[][] rspt14 = {
      ptrspt2_2_1, ptrspt2_2_2};//for 2,5

  public static int[] ptrspt2_3_1 = {
      421, 306};
  public static int[] ptrspt2_3_2 = {
      421, 339};
  public static int[][] rspt15 = {
      ptrspt2_3_1, ptrspt2_3_2};//for 5,8

  public static int[] ptrspt2_4_1 = {
      454, 306};
  public static int[] ptrspt2_4_2 = {
      454, 339};
  public static int[][] rspt16 = {
      ptrspt2_4_1, ptrspt2_4_2};//for 8,11

  public static int[] ptrspt2_5_1 = {
      488, 306};
  public static int[] ptrspt2_5_2 = {
      488, 339};
  public static int[][] rspt17 = {
      ptrspt2_5_1, ptrspt2_5_2};//for 11,14

  public static int[] ptrspt2_6_1 = {
      521, 306};
  public static int[] ptrspt2_6_2 = {
      521, 339};
  public static int[][] rspt18 = {
      ptrspt2_6_1, ptrspt2_6_2};//for 14,17

  public static int[] ptrspt2_7_1 = {
      554, 306};
  public static int[] ptrspt2_7_2 = {
      554, 339};
  public static int[][] rspt19 = {
      ptrspt2_7_1, ptrspt2_7_2};//for 17,20

  public static int[] ptrspt2_8_1 = {
      587, 306};
  public static int[] ptrspt2_8_2 = {
      587, 339};
  public static int[][] rspt20 = {
      ptrspt2_8_1, ptrspt2_8_2};//for 20,23

  public static int[] ptrspt2_9_1 = {
      621, 306};
  public static int[] ptrspt2_9_2 = {
      621, 339};
  public static int[][] rspt21 = {
      ptrspt2_9_1, ptrspt2_9_2};//for 23,26

  public static int[] ptrspt2_10_1 = {
      654, 306};
  public static int[] ptrspt2_10_2 = {
      654, 339};
  public static int[][] rspt22 = {
      ptrspt2_10_1, ptrspt2_10_2};//for 26,29

  public static int[] ptrspt2_11_1 = {
      687, 306};
  public static int[] ptrspt2_11_2 = {
      687, 339};
  public static int[][] rspt23 = {
      ptrspt2_11_1, ptrspt2_11_2};//for 29,32

  public static int[] ptrspt2_12_1 = {
      720, 306};
  public static int[] ptrspt2_12_2 = {
      720, 339};
  public static int[][] rspt24 = {
      ptrspt2_12_1, ptrspt2_12_2};//for 32,35

////Third row Split

  public static int[] ptrspt3_1_1 = {
	  355,235};
  public static int[] ptrspt3_1_2 = {
	  355,270};
  public static int[][] rspt25 = {
      ptrspt3_1_1, ptrspt3_1_2};//for 00,3

  public static int[] ptrspt3_2_1 = {
      388, 235};
  public static int[] ptrspt3_2_2 = {
      388, 270};
  public static int[][] rspt26 = {
      ptrspt3_2_1, ptrspt3_2_2};//for 3,6

  public static int[] ptrspt3_3_1 = {
      421, 235};
  public static int[] ptrspt3_3_2 = {
      421, 270};
  public static int[][] rspt27 = {
      ptrspt3_3_1, ptrspt3_3_2};//for 6,9

  public static int[] ptrspt3_4_1 = {
      454, 235};
  public static int[] ptrspt3_4_2 = {
      454, 270};
  public static int[][] rspt28 = {
      ptrspt3_4_1, ptrspt3_4_2};//for 9,12

  public static int[] ptrspt3_5_1 = {
      488, 235};
  public static int[] ptrspt3_5_2 = {
      488, 270};
  public static int[][] rspt29 = {
      ptrspt3_5_1, ptrspt3_5_2};//for 12,15

  public static int[] ptrspt3_6_1 = {
      521, 235};
  public static int[] ptrspt3_6_2 = {
      521, 270};
  public static int[][] rspt30 = {
      ptrspt3_6_1, ptrspt3_6_2};//for 15,18

  public static int[] ptrspt3_7_1 = {
      554, 235};
  public static int[] ptrspt3_7_2 = {
      554, 270};
  public static int[][] rspt31 = {
      ptrspt3_7_1, ptrspt3_7_2};//for 18,21

  public static int[] ptrspt3_8_1 = {
      587, 235};
  public static int[] ptrspt3_8_2 = {
      587, 270};
  public static int[][] rspt32 = {
      ptrspt3_8_1, ptrspt3_8_2};//for 21,24

  public static int[] ptrspt3_9_1 = {
      621, 235};
  public static int[] ptrspt3_9_2 = {
      621, 270};
  public static int[][] rspt33 = {
      ptrspt3_9_1, ptrspt3_9_2};//for 24,27

  public static int[] ptrspt3_10_1 = {
      654, 235};
  public static int[] ptrspt3_10_2 = {
      654, 270};
  public static int[][] rspt34 = {
      ptrspt3_10_1, ptrspt3_10_2};//for 27,30

  public static int[] ptrspt3_11_1 = {
      687, 235};
  public static int[] ptrspt3_11_2 = {
      687, 270};
  public static int[][] rspt35 = {
      ptrspt3_11_1, ptrspt3_11_2};//for 30,33

  public static int[] ptrspt3_12_1 = {
      720, 235};
  public static int[] ptrspt3_12_2 = {
      720, 270};
  public static int[][] rspt36 = {
      ptrspt3_12_1, ptrspt3_12_2};//for 33,36

  public static int[] ptrspt2_2_0_1 = {
	  355,306};
  public static int[] ptrspt2_2_0_2 = {
	  355,334};
  public static int[][] rspt37 = {
      ptrspt2_2_0_1, ptrspt2_2_0_2};//for 0,2

//  public static int[] ptrspt2_1_1 = {
//      436, 181};
//  public static int[] ptrspt2_1_2 = {
//      474, 204};
//  public static int[][] rspt13 = {
//      ptrspt2_1_1, ptrspt2_1_2};//for 0,2

  public static int[] ptrspt2_2_00_1 = {
	  355,306};
  public static int[] ptrspt2_2_00_2 = {
	  355,334};
  public static int[][] rspt38 = {
      ptrspt2_2_00_1, ptrspt2_2_00_2};//for 00,2

  
  ///// for ball position in Zoom
// Roulette
  public static final int ball[][] = {
      {
      30, 70}, {
      55, 65}, {
      80, 65}, {
      105, 65}
  };
  /// for ball Positino in Wheel

  public static final int resInWheel[] = {0, 32, 15, 19, 4, 21, 2, 25, 17,34,
	   6, 27, 13, 36, 11, 30, 8, 23, 10, 5, 24, 16, 33, 1, 20, 14, 31, 9, 22, 18, 29, 7, 28,
	   12, 35, 3, 26};
  
  public static final int binw[][] = {
	  {111,23}, //0
	    {122,22}, //32
	    {132,22}, //15
	    {151,28}, //19
	    {162,33}, //4
	    {169,39},//21
	    {175,46}, //2
	    {176,51}, //25
	    {177,56}, //17
	    {177,64}, //34
	    {177,72}, //6
	    {173,78}, //27
	    {167,84}, //13
	    {161,90}, //36
	    {151,95}, //11
	    {142,99}, //30
	    {132,103}, //8
	    {121,106}, //23
	    {108,107}, //10
	    {96,106}, //5
	    {84,104}, //24
	    {76,102}, //16
	    {66,98}, //33
	    {57,93}, //1
	    {49,86}, //20
	    {44,81}, //14
	    {40,74}, //31
	    {38,67}, //9
	    {37,58}, //22
	    {38,53}, //18
	    {43,45}, //29
	    {48,39}, //7
	    {58,33}, //28
	    {67,28}, //12
	    {78,25}, //35
	    {89,21}, //3
	    {99,21} //26
};

  public static final int binw0[][] = {
	  {111,23}, //0
	    {122,22}, //32
	    {132,22}, //15
	    {151,28}, //19
	    {162,33}, //4
	    {169,39},//21
	    {175,46}, //2
	    {176,51}, //25
	    {177,56}, //17
	    {177,64}, //34
	    {177,72}, //6
	    {173,78}, //27
	    {167,84}, //13
	    {161,90}, //36
	    {151,95}, //11
	    {142,99}, //30
	    {132,103}, //8
	    {121,106}, //23
	    {108,107}, //10
	    {96,106}, //5
	    {84,104}, //24
	    {76,102}, //16
	    {66,98}, //33
	    {57,93}, //1
	    {49,86}, //20
	    {44,81}, //14
	    {40,74}, //31
	    {38,67}, //9
	    {37,58}, //22
	    {38,53}, //18
	    {43,45}, //29
	    {48,39}, //7
	    {58,33}, //28
	    {67,28}, //12
	    {78,25}, //35
	    {89,21}, //3
	    {99,21} //26
};
  
  public static final int binw1[][] = {
	  {58,92}, //0
	    {50,87}, //32
	    {45,80}, //15
	    {38,66}, //19
	    {37,61}, //4
	    {38,53},//21
	    {41,46}, //2
	    {46,40}, //25
	    {53,33}, //17
	    {61,29}, //34
	    {70,25}, //6
	    {80,21}, //27
	    {92,19}, //13
	    {103,18}, //36
	    {115,18}, //11
	    {126,20}, //30
	    {137,22}, //8
	    {147,27}, //23
	    {156,30}, //10
	    {164,36}, //5
	    {170,40}, //24
	    {175,47}, //16
	    {178,55}, //33
	    {178,61}, //1
	    {177,69}, //20
	    {175,75}, //14
	    {169,82}, //31
	    {164,89}, //9
	    {155,93}, //22
	    {146,98}, //18
	    {136,102}, //29
	    {124,104}, //7
	    {112,105}, //28
	    {101,105}, //12
	    {89,104}, //35
	    {77,101}, //3
	    {67,97} //26
  };
  
  public static final int binw2[][] = {
	  {167,40}, //0(1)
	    {173,45}, //32
	    {176,51}, //15
	    {178,65}, //19
	    {176,74}, //4
	    {173,80},//21
	    {166,86}, //2
	    {159,92}, //25
	    {149,96}, //17
	    {140,99}, //34
	    {129,104}, //6
	    {118,104}, //27
	    {106,105}, //13
	    {94,104}, //36
	    {83,102}, //11
	    {72,99}, //30
	    {62,95}, //8
	    {54,91}, //23
	    {48,84}, //10
	    {42,78}, //5
	    {39,70}, //24
	    {38,63}, //16
	    {38,56}, //33
	    {41,53}, //1(24)
	    {44,47}, //20
	    {51,37}, //14(26)
	    {57,31}, //31
	    {66,27}, //9
	    {76,23}, //22
	    {86,21}, //18
	    {98,20}, //29
	    {109,19}, //7
	    {121,20}, //28
	    {132,22}, //12
	    {142,24}, //35
	    {151,28}, //3
	    {160,33} //26
  };
  
  public static final int binw3[][] = {
	  {84,22}, //0
	    {95,21}, //32
	    {107,19}, //15
	    {130,21}, //19(4)
	    {140,25}, //4
	    {150,28},//21
	    {159,32}, //2
	    {166,37}, //25
	    {172,42}, //17
	    {176,49}, //34
	    {177,56}, //6
	    {178,64}, //27
	    {176,70}, //13
	    {173,77}, //36
	    {168,84}, //11
	    {162,91}, //30
	    {153,96}, //8
	    {143,104}, //23
	    {131,104}, //10
	    {121,105}, //5
	    {109,105}, //24
	    {95,105}, //16
	    {85,104}, //33
	    {75,100}, //1
	    {64,95}, //20
	    {56,91}, //14
	    {48,86}, //31
	    {44,79}, //9
	    {40,71}, //22
	    {38,65}, //18
	    {38,58}, //29
	    {40,51}, //7
	    {43,44}, //28
	    {49,38}, //12
	    {55,33}, //35
	    {64,28}, //3
	    {73,24} //26  
  };
  
  public static final int binw4[][] = {
	  {151,29},
	  {160,36},
	  {167,41},
	  {177,55},
	  {179,65},
	  {179,69},
	  {176,77},
	  {172,83},
	  {165,91},
	  {161,94},
	  {150,100},
	  {141,103},
	  {131,106},
	  {119, 107},
	  {109,108},
	  {98,105},
	  {88,105},
	  {76,102},
	  {65,99},
	  {56,93},
	  {49,86},
	  {43,81},
	  {40,75},
	  {38,67},
	  {39,60},
	  {38,54},
	  {45,46},
	  {50,40},//(28)
	  {57,35},
	  {65,32},
	  {75,28},
	  {86,25},
	  {99,23},
	  {111,22},
	  {121,23},
	  {132,25},
	  {146,26}
  };
  
  public static final int binw5[][] = {
	  {101,105},
	  {90,107},
	  {80,104},
	  {61,95},
	  {52,91},
	  {48,85},
	  {42,79},//(7)
	  {39,72},
	  {38,64},
	  {40,56},
	  {44,52},
	  {47,45},
	  {53,38},
	  {60,32},
	  {69,29},//(15)
	  {79,24},
	  {91,24},
	  {103,23},
	  {116,23},
	  {128,24},
	  {140,25},
	  {150,28},
	  {156,32},
	  {164,37},
	  {170,43},
	  {173,51},
	  {178,58},
	  {177,66},
	  {177,73},
	  {175,80},
	  {172,85},
	  {165,91},
	  {157,97},
	  {147,102},
	  {137,106},
	  {126,107},
	  {116,109}
  };
  
  public static final int binw6[][] = {
	  {177,66},
	  {178,77},
	  {174,81},
	  {158,97},
	  {150,102},
	  {139,106},
	  {128,108},
	  {118,110},
	  {106,108},
	  {95,107},
	  {85,106},
	  {75,101},
	  {65,97},
	  {56,90},
	  {47,86},
	  {42,80},
	  {40,73},
	  {38,67},
	  {39,58},
	  {41,54},
	  {45,45},
	  {51,39},
	  {57,35},
	  {66,30},
	  {77,26},
	  {88,24},
	  {101,22},
	  {113,22},
	  {125,22},
	  {138,26},
	  {146,28},
	  {158,32},
	  {162,38},
	  {169,44},
	  {172,50},
	  {175,57},
	  {177,64}
	  
  };
public static final int binw7[][] = {
	{47,38},
	{54,38},
	{64,32},
	{84,27},
	{94,25},
	{106,24},
	{118,23},
	{129,25},
	{143,26},
	{152,30},
	{160,35},
	{168,37},
	{172,46},
	{176,54},
	{179,61},
	{178,67},
	{177,74},
	{174,81},
	{169,87},
	{162,94},
	{154,98},
	{143,103},
	{134,106},
	{123,107},
	{112,108},
	{100,106},
	{90,105},
	{78,108},
	{67,98},
	{58,95},
	{51,91},
	{46,82},
	{42,77},
	{38,69},
	{37,62},
	{39,54},
	{43,49}
	  
  };
public static final int binw8[][] = {
	{137,101},
	{125,107},
	{115,109},
	{93,106},
	{82,106},
	{71,101},
	{62,97},
	{53,92},
	{46,84},
	{41,78},
	{39,74},
	{39,65},
	{39,59},
	{43,50},
	{46,45},
	{52,38},
	{60,33},
	{68,30},
	{77,26},
	{91,25},
	{102,22},
	{114,23},
	{127,22},
	{138,25},
	{146,27},
	{156,33},
	{164,37},
	{170,43},
	{174,50},
	{177,58},
	{178,65},
	{179,71},
	{177,78},
	{169,85},
	{163,91},
	{155,96},
	{147,102}
};
public static final int binw9[][] = {
	{38,66},
	{37,64},
	{41,55},
	{48,44},
	{53,39},
	{63,35},
	{74,31},
	{82,27},
	{93,24},
	{105,23},
	{118,24},
	{130,24},//12
	{142,25},
	{152,29},
	{159,33},
	{166,37},
	{169,45},
	{174,53},
	{179,60},
	{179,67},
	{178,73},
	{176,80},
	{170,86},
	{162,92},
	{153,97},
	{144,101},
	{135,105},
	{124,106},
	{114,108},
	{102,109},
	{91,107},
	{80,103},
	{69,99},
	{60,96},
	{52,91},
	{44,85},
	{40,77}
  
};
public static final int binw10[][] = {
	{114,105},
	{103,109},
	{92,107},
	{71,100},
	{60,97},
	{53,91},
	{46,86},
	{42,79},
	{39,72},
	{37,64},
	{39,57},
	{42,51},
	{46,45},
	{51,38},
	{59,32},
	{68,28},
	{79,25},
	{90,23},
	{102,23},
	{115,23},
	{129,21},
	{137,25},
	{147,28},
	{157,32},
	{164,34},
	{170,44},
	{174,52},
	{177,57},
	{178,66},
	{179,73},
	{176,78},
	{169,85},
	{162,91},
	{154,96},
	{146,100},
	{136,104},
	{126,106}
	  
};
public static final int binw11[][] = {
	{157,93},
	{147,103},
	{136,105},
	{116,108},
	{105,109},
	{94,107},
	{83,105},
	{72,102},
	{62,96},
	{53,91},
	{48,86},
	{42,79},
	{40,71},
	{39,65},
	{40,57},
	{43,51},
	{46,46},
	{52,39},
	{66,35},
	{69,31},
	{76,25},
	{90,24},
	{102,22},
	{114,22},
	{124,22},
	{136,26},
	{145,29},
	{156,33},
	{166,37},
	{168,45},
	{173,50},
	{178,57},
	{177,66},
	{176,72},
	{174,78},
	{169,85},
	{163,91}
  
};
public static final int binw12[][] = {
	{63,28},
	{70,30},
	{83,26},
	{107,22},
	{119,23},
	{131,25},
	{142,28},
	{153,33},
	{159,34},
	{167,39},
	{172,47},
	{175,52},
	{178,61},
	{179,69},
	{178,75},
	{174,80},
	{167,88},
	{161,94},
	{152,98},
	{142,102},
	{132,104},
	{122,107},
	{111,108},
	{101,106},
	{89,105},
	{78,103},
	{68,98},
	{59,94},
	{51,88},
	{45,83},
	{40,76},
	{37,70},
	{38,61},
	{39,55},
	{44,48},
	{46,43},
	{51,37}

};
public static final int binw13[][] = {
	{171,81},
	{165,93},
	{158,97},
	{138,104},
	{127,108},
	{117,109},
	{105,109},
	{95,108},
	{84,104},
	{71,101},
	{64, 98},
	{56,91},
	{47,85},
	{43,79},
	{39,73},
	{39,67},
	{41,57},
	{43,52},
	{45,47},
	{51,40},
	{60,33},
	{67,30},
	{78,26},
	{89,24},
	{102,24},
	{113,23},//26
	{125,23},
	{137,24},
	{149,28},
	{157,33},
	{164,37},
	{170,42},
	{173,51},
	{175,58},
	{176,64},
	{177,71},
	{174,78}
	  
};
public static final int binw14[][] = {
	{45,80},
	{39,79},
	{38,69},
	{41,56},//4
	{46,51},
	{50,45},
	{55,40},
	{61,35},
	{71,30},
	{81,25},
	{93,23},
	{105,22},
	{118,23},
	{130,23},
	{140,25},
	{149,28},
	{160,33},
	{165,39},
	{173,45},
	{175,53},
	{178,58},
	{179,66},
	{178,72},
	{174,80},
	{169,86},
	{163,92},
	{153,97},
	{144,102},
	{135,106},
	{124,110},
	{113,108},
	{104,108},
	{92,106},
	{80,104},
	{69,100},
	{61,96},
	{51,91}
  
};
public static final int binw15[][] = {
	{130,22},
	{143,27},
	{151,30},
	{166,41},
	{173,47},
	{176,55},
	{178,63},
	{179,70},
	{178,74},
	{175,82},
	{167,90},
	{159,94},
	{150,100},
	{142,103},
	{131,106},
	{120,107},
	{110,108},
	{100,106},
	{88,106},
	{78,103},
	{65,97},
	{56,94},
	{49,87},
	{44,82},
	{39,74},
	{38,68},
	{38,61},
	{41,54},
	{45,47},
	{50,42},
	{57,36},
	{64,30},
	{74,27},
	{84,24},
	{98,23},//(35)
	{109,21},
	{121,20}
};
public static final int binw16[][] = {
	{78,102},
	{68,102},
	{60,96},
	{47,84},
	{42,79},
	{40,71},
	{37,64},
	{40,58},
	{43,51},
	{47,45},
	{55,40},
	{60,34},
	{70,28},
	{80,26},
	{91,23},
	{104,21},
	{116,22},
	{129,24},
	{141,26},
	{149,29},
	{159,33},
	{164,39},
	{170,44},
	{174,51},
	{177,57},
	{180,66},
	{177,72},
	{175,78},
	{170,86},
	{164,94},
	{156,98},
	{146,101},
	{136,105},
	{127,108},
	{116,108},
	{103,107},
	{93,107}

};
public static final int binw17[][] = {
	{177,53},
	{180,63},
	{179,69},
	{172,82},
	{166,91},
	{160,98},
	{149,102},
	{140,106},
	{128,105},
	{118,108},
	{107,108},
	{97,107},
	{85,105},
	{75,100},
	{63,97},
	{55,92},
	{47,85},
	{42,81},
	{39,75},
	{37,68},
	{40,59},
	{40,53},
	{44,45},
	{51,40},
	{58,35},
	{65,30 },
	{77,27},
	{88,25},//(28)
	{101,22},
	{111,23},
	{125,21},
	{137,25},
	{149,27},
	{154,32},
	{161,37},
	{168,42},
	{170,50}

 
};
public static final int binw18[][] = {
	{38,54},
	{44,49},
	{50,45},
	{65,33},
	{73,29},//(5)
	{85,27},
	{94,23},
	{106,24},
	{119,23},
	{130,24},
	{142,28},
	{150,29},
	{161,34},
	{165,40},
	{172,45},
	{177,52},
	{179,62},
	{178,67},
	{179,75},
	{174,80},
	{169,86},
	{161,94},
	{153,97},
	{144,101},
	{134,104},
	{124,107},
	{113,107},
	{101,106},
	{90,105},
	{81,104},
	{69,100},
	{60,95},
	{52,89},
	{46,84},
	{39,77},
	{38,70},
	{38,62}
};
public static final int binw19[][] = {
	{142,26},
	{155,32},
	{161,36},
	{173,47},
	{176,56},
	{179,62},
	{179,70},
	{178,77},
	{172,82},
	{168,89},
	{159,95},
	{151,99},
	{141,104},
	{131,106},
	{121,108},
	{108,107},
	{99,107},
	{86,105},
	{76,102},
	{66,99},
	{54,93},//(21)
	{46,88},
	{43,82},
	{39,74},
	{37,67},
	{38,61},
	{40,54},
	{46,46},
	{50,39},
	{57,34},
	{64,31},
	{76,27},
	{86,24},
	{98,22},
	{109,21},
	{123,21},
	{134,24}

};

public static final int binw20[][] = {
	{51,91},
	{46,85},
	{41,77},
	{38,63},
	{40,56},
	{45,50},
	{49,45},
	{55,39},
	{61,33},
	{71,29},
	{82,26},
	{93,25},
	{106,23},
	{118,22},
	{130,23},
	{140,24},
	{153,28},
	{158,33},
	{167,38},
	{170,46},
	{174,53},//(21)
	{178,58},
	{179,65},
	{177,74},
	{174,80},
	{169,85},
	{161,92},
	{154,98},
	{146,102},
	{135,106},
	{125,108},
	{114,107},
	{103,107},
	{92,106},
	{86,104},
	{70,101},
	{61,96}

	
};
public static final int binw21[][] = {
	{160,36},
	{167,42},
	{173,48},
	{179,63},
	{178,70},
	{178,79},
	{173,84},
	{168,90},
	{159,95},
	{151,99},
	{139,104},
	{130,107},
	{120,107},
	{108,108},
	{98,106},
	{85,104},
	{74,101},
	{66,98},
	{55,93},
	{50,88},
	{43,81},
	{34,74},
	{38,68},
	{39,60},
	{40,53},
	{43,46},
	{50,40},
	{58,35},
	{66,30},
	{75,28},
	{85,25},
	{98,23},
	{112,22},
	{123,20},
	{133,24},
	{142,26},
	{154,30}

};
public static final int binw22[][] = {
	{37,62},
	{39,57},
	{45,49},
	{56,37},
	{62,33},
	{76,30},//(6)
	{82,26},
	{94,25},
	{106,23},
	{119,22},
	{131,25},
	{142,26},
	{151,29},
	{158,33},
	{167,40},
	{172,44},
	{175,53},
	{176,60},
	{179,68},
	{177,74},
	{175,80},
	{168,87},
	{163,93},
	{154,98},//(24)
	{144,102},
	{134,104},
	{123,107},//(27)
	{113,108},
	{101,107},
	{90,108},
	{78,104},
	{69,100},
	{60,94},
	{50,90},//(34)
	{45,84},
	{40,76},
	{38,70}

};
public static final int binw23[][] = {
	{124,107},
	{114,110},
	{103,108},
	{81,104},
	{70,101},
	{62,97},
	{54,92},
	{46,86},
	{43,79},
	{38,72},
	{38,67},
	{40,57},
	{43,50},
	{46,43},
	{52,39},
	{59,33},
	{69,29},
	{79,27},
	{90,24},
	{103,23},
	{115,22},
	{127,23},
	{137,25},
	{148,27},
	{155,32},
	{163,38},
	{169,43},
	{175,50},
	{177,58},
	{179,66},
	{177,71},
	{177,77},
	{169,86},
	{162,91},
	{155,96},
	{147,100},
	{137,105}
	  
};
public static final int binw24[][] = {
	{91,106},
	{81,104},
	{70,100},
	{56,90},
	{46,86},
	{42,79},
	{38,72},
	{39,65},
	{41,57},
	{42,51},
	{48,46},
	{54,39},
	{61,34},
	{69,28},
	{80,25},
	{90,24},
	{103,22},
	{116,23},
	{128,24},
	{141,26},
	{150,28},
	{157,31},
	{164,38},
	{170,43},
	{174,50},
	{178,59},
	{179,65},
	{179,72},
	{175,78},
	{171,87},
	{165,92},
	{158,96},
	{146,101},
	{137,106},
	{127,107},
	{116,108},
	{104,108}

};
public static final int binw25[][] = {
	{173,48},
	{178,55},
	{179,61},
	{177,77},
	{172,84},
	{167,92},
	{158,97},
	{150,101},
	{139,103},
	{130,106},
	{119, 109},
	{108,108},
	{98,109},
	{85,103},
	{75,100},
	{64,97},
	{55,91},
	{49,87},
	{43,81},
	{40,75},
	{39,67},
	{39,60},
	{39,53},
	{45,44},
	{50,40},
	{56,34},
	{66,30},
	{78,27},
	{88,24},
	{99,24},
	{113,23},
	{124,22},
	{136,24},
	{146,27},
	{154,31},
	{162,36},
	{166,36}
 
};
public static final int binw26[][] = {
	{95,22},
	{106,24},
	{119,23},
	{143,27},
	{153,33},
	{160,35},
	{168,42},
	{173,47},
	{176,53},
	{178,60},
	{179,69},
	{178,75},
	{174,82},
	{168,90},
	{159,95},
	{151,98},
	{142,102},
	{132,105},
	{122,108},
	{110,108},
	{100,107},
	{86,105},
	{75,101},
	{66,98},
	{56,94},
	{50,89},
	{44,83},
	{41,76},
	{38,69},
	{38,62},
	{40,54},
	{44,48},
	{49,42},//(33)
	{55,37},
	{65,31},
	{74,28},
	{86,24}

};
public static final int binw27[][] = {
	{179,76},
	{174,83},
	{166,90},//(3)
	{149,101},
	{139,106},
	{129,109},
	{117,109},
	{106,109},
	{95,107},
	{85,104},
	{75,102},
	{54,96},
	{54,91},
	{49,86},
	{41,79},
	{40,74},
	{40,65},
	{41,59},
	{41,52},
	{46,47},
	{52,38},
	{58,35},
	{68,29},//(23)
	{74,26},
	{89,24},
	{101,23},
	{113,22},
	{126,22},
	{136,24},
	{145,29},
	{156,31},
	{164,35},
	{167,46},
	{173,51},
	{174,56},
	{177,63},
	{178,70}

};
public static final int binw28[][] = {
	{54,35},
	{63,31},
	{74,28},
	{94,23},
	{107,24},
	{120,24},
	{129,25},
	{141,26},
	{156,30},
	{159,35},
	{167,40},
	{172,45},
	{176,54},
	{179,62},
	{179,68},
	{178,74},
	{174,80},
	{167,88},
	{161,94},//(19)
	{152,98},
	{143,101},
	{132,105},
	{122,108},
	{111,108},
	{100,106},
	{88,106},//26
	{78,103},
	{69,98},
	{57,94},
	{50,90},
	{43,83},
	{40,76},
	{38,69},//(33)
	{38,61},
	{39,55},
	{42,48},
	{48,42}
	  
};
public static final int binw29[][] = {
	{43,48},
	{48,46},
	{57,39},
	{74,30},
	{83,27},
	{95,25},
	{107,23},
	{119,25},
	{131,24},
	{141,26},
	{151,30},
	{159,34},
	{167,39},
	{171,46},
	{174,54},
	{179,60},
	{180,67},
	{177,75},
	{175,81},
	{169,87},
	{162,92},
	{152,98},
	{143,102},
	{133,104},
	{122,107},
	{112,108},
	{100,107},
	{89,106},
	{79,102},
	{69,101},
	{58,95},
	{52,88},
	{46,84},
	{40,77},
	{38,70},
	{38,62},
	{39,55}
	  
};
public static final int binw30[][] = {
	{141,101},
	{137,107},
	{128,108},
	{104,108},
	{94,108},
	{81,105},
	{73,102},
	{62,97},
	{53,91},
	{47,86},
	{43,80},
	{38,72},
	{38,64},
	{41,58},
	{41,51},
	{46,45},
	{52,39},
	{59,34},
	{69,30},
	{81,28},
	{89,23},
	{101,20},
	{114,22},
	{126,23},
	{137,24},
	{147,29},
	{156,33},
	{165,37},
	{171,42},
	{172,52},
	{177,57},
	{179,64},
	{178,71},
	{176,78},
	{169,85},
	{163,93},
	{155,97}

};
public static final int binw31[][] = {
	{40,77},
	{39,71},
	{39,63},
	{41,48},
	{49,45},
	{51,40},
	{64,35},
	{73,30},
	{82,27},
	{93,24},
	{105,23},
	{118,22},
	{130,23},//(13)
	{140,26},//(14)
	{151,29},
	{158,33},
	{166,38},
	{171,45},
	{175,52},
	{177,60},
	{179,65},
	{180,74},
	{175,80},
	{169,86},
	{162,92},
	{152,97},
	{145,101},
	{136,106},
	{124,107},
	{114,109},
	{102,108},
	{92,106},
	{81,103},
	{70,100},
	{60,95},
	{52,90},
	{46,84}
};
public static final int binw32[][] = {
	{121,21},
	{132,24},
	{143,27},
	{160,35},
	{167,43},
	{174,48},
	{176,55},
	{179,61},
	{178,68},
	{178,75},
	{173,84},
	{166,89},
	{159,96},
	{153,100},
	{142,104},
	{132,105},
	{121,107},
	{110,108},
	{100,108},
	{89,106},
	{76,101},
	{64,97},
	{56,93},
	{50,88},
	{43,82},
	{40,76},
	{38,68},
	{38,61},
	{40,53},
	{45,48},
	{55,42},
	{56,36},
	{65,31},
	{75,27},
	{85,24},
	{96,23},
	{108,20}
};
public static final int binw33[][] = {
	{68,98},
	{60,97},
	{51,90},
	{41,77},
	{39,71},
	{39,63},
	{40,58},
	{44,51},
	{46,45},
	{53,39},
	{63,34},
	{71,30},
	{80,26},
	{92,23},
	{104,22},
	{117,21},
	{129,24},
	{141,26},
	{152,29},
	{158,33},
	{165,38},
	{171,43},
	{175,51},
	{177,58},
	{178,65},
	{179,72},
	{174,79},
	{169,86},
	{165,91},
	{156,98},
	{147,102},
	{136,104},
	{126,107},
	{115,108},
	{104,108},
	{93,107},
	{81,104}
};
public static final int binw34[][] = {
	{179,62},
	{180,70},
	{178,75},
	{166,90},
	{159,95},
	{152,102},
	{139,105},
	{129,109},
	{117,107},
	{107,108},
	{96,107},
	{86,104},
	{73,100},
	{64,96},
	{55,91},
	{48,87},
	{43,81},
	{39,74},//(18)
	{39,67},
	{40,61},
	{43,52},
	{44,46},
	{50,40},
	{57,34},
	{68,30},
	{77,26},
	{87,23},
	{101,23},
	{112,22},
	{125,23},
	{135,25},
	{147,27},
	{153,32},
	{160,32},
	{168,44},
	{172,50},
	{173,57}
};
public static final int binw35[][] = {
	{71,28},
	{84,27},
	{95,23},
	{120,23},
	{133,25},
	{141,27},
	{151,32},
	{160,36},
	{167,40},
	{171,47},
	{176,54},
	{178,61},
	{178,68},
	{178,76},
	{173,82},
	{167,86},
	{160,93},
	{152,99},
	{142,103},
	{132,106},
	{122,107},
	{110,108},
	{100,108},
	{87,104},
	{76,102},
	{69,98},
	{57,94},
	{52,88},
	{44,82},
	{39,74},
	{38,70},
	{38,62},
	{42,55},
	{43,50},
	{48,43},
	{53,38},
	{63,31}
};
public static final int binw36[][] = {
	{165,90},//(1)
	{159,98},
	{149,101},//(3)
	{128,106},
	{116,109},
	{105,108},
	{96,108},
	{83,105},
	{72,101},
	{63,96},
	{54,93},
	{46,85},
	{43,79},
	{40,72},
	{38,64},
	{39,58},
	{43,52},
	{46,43},
	{53,41},
	{60,36},
	{67,29},
	{78,26},
	{89,24},
	{101,22},
	{113,21},
	{125,23},
	{135,25},
	{148,27},
	{160,32},
	{163,38},
	{170,43},
	{176,49},
	{176,58},
	{177,64},
	{178,72},
	{176,77},
	{170,86}
};

  public static final int[] c_chip1 = {400,466};
  public static final int[] c_chip5 = {413,435};
  public static final int[] c_chip10 = {442, 415};
  public static final int[] c_chip50 = {470, 394};
  public static final int[] c_chip100 = {512, 384};
  public static final int[] c_new_game = {500,475};
  public static final int[] c_spin = {575,435};
  public static final int[] c_clear_bet = {600,365};
  public static final int[] c_player_worth = {6,525};
  public static final int[] c_bet_background = {142,132};
  public static final int[] c_wheel = {52,319}; //150,388
  public static final int[] c_wheel_head = {626,16};
  public static final int[] c_leave_table = {660,491};
  public static final int[] c_view_lobby = {475,552};
  public static final int[] c_zoom_table = {93,14};
  public static final int[] c_result = {100,150};
  public static final int[] c_result_set = {16,12};
  public static final int[] c_result_set2 = {16,125};
  public static final int[] c_bet = {632,535};
  public static final int[] c_real_money = {20,509};

  public static final int[][] NOS_IN_REGION = {
      {0},
      {1},
      {2},
      {3},
      {4},
      {5},
      {6},
      {7},
      {8},
      {9},
      {10},
      {11},
      {12},
      {13},
      {14},
      {15},
      {16},
      {17},
      {18},
      {19},
      {20},
      {21},
      {22},
      {23},
      {24},
      {25},
      {26},
      {27},
      {28},
      {29},
      {30},
      {31},
      {32},
      {33},
      {34},
      {35},
      {36},
      {0},
      {1,4,7,10,13,16,19,22,25,28,31,34},
      {2,5,8,11,14,17,20,23,26,29,32,35},
      {3,6,9,12,15,18,21,24,27,30,33,36},
      {25,26,27,28,29,30,31,32,33,34,35,36},
      {13,14,15,16,17,18,19,20,21,22,23,24},
      {1,2,3,4,5,6,7,8,9,10,11,12},
      {19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36},
      {1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35},
      {1,3,5,7,9,12,14,16,18,19,21,23,25,27,30,32,34,36},
      {2,4,6,8,10,11,13,15,17,20,22,24,26,28,29,31,33,35},
      {2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36},
      {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18},
      {1,2},
      {4,5},
      {7,8},
      {10,11},
      {13,14},
      {16,17},
      {19,20},
      {22,23},
      {25,26},
      {28,29},
      {31,32},
      {34,35},
      {2,3},
      {5,6},
      {8,9},
      {11,12},
      {14,15},
      {17,18},
      {20,21},
      {23,24},
      {26,27},
      {29,30},
      {32,33},
      {35,36},
      {0,0},
      {0,1},
      {1,4},
      {4,7},
      {7,10},
      {10,13},
      {13,16},
      {16,19},
      {19,22},
      {22,25},
      {25,28},
      {28,31},
      {31,34},
      {0,2},
      {2,5},
      {5,8},
      {8,11},
      {11,14},
      {14,17},
      {17,20},
      {20,23},
      {23,26},
      {26,29},
      {29,32},
      {32,35},
      {0,3},
      {3,6},
      {6,9},
      {9,12},
      {12,15},
      {15,18},
      {18,21},
      {21,24},
      {24,27},
      {27,30},
      {30,33},
      {33,36},
      {0,2},
      {0,0,2},
      {0,1,2},
      {0,2,3},
      {1,2,3},
      {4,5,6},
      {7,8,9},
      {10,11,12},
      {13,14,15},
      {16,17,18},
      {19,20,21},
      {22,23,24},
      {25,26,27},
      {28,29,30},
      {31,32,33},
      {34,35,36},
      {1,2,4,5},
      {4,5,7,8},
      {7,8,10,11},
      {10,11,13,14},
      {13,14,16,17},
      {16,17,19,20},
      {19,20,22,23},
      {22,23,25,26},
      {25,26,28,29},
      {28,29,31,32},
      {31,32,34,35},
      {2,3,5,6},
      {5,6,8,9},
      {8,9,11,12},
      {11,12,14,15},
      {14,15,17,18},
      {17,18,20,21},
      {20,21,23,24},
      {23,24,26,27},
      {26,27,29,30},
      {29,30,32,33},
      {32,33,35,36},
      {1,2,3,4,5,6},
      {4,5,6,7,8,9},
      {7,8,9,10,11,12},
      {10,11,12,13,14,15},
      {13,14,15,16,17,18},
      {16,17,18,19,20,21},
      {19,20,21,22,23,24},
      {22,23,24,25,26,27},
      {25,26,27,28,29,30},
      {28,29,30,31,32,33},
      {31,32,33,34,35,36},
      {0,0,1,2,3}
};
public static int[][][] REG_POINTS = {
    poly0,
    poly1,
    poly2,
    poly3,
    poly4,
    poly5,
    poly6,
    poly7,
    poly8,
    poly9,
    poly10,
    poly11,
    poly12,
    poly13,
    poly14,
    poly15,
    poly16,
    poly17,
    poly18,
    poly19,
    poly20,
    poly21,
    poly22,
    poly23,
    poly24,
    poly25,
    poly26,
    poly27,
    poly28,
    poly29,
    poly30,
    poly31,
    poly32,
    poly33,
    poly34,
    poly35,
    poly36,
    poly00,
    poly_2to1_1,
    poly_2to1_2,
    poly_2to1_3,
    poly_12_3,
    poly_12_2,
    poly_12_1,
    poly_19_36,
    poly_ODD,
    poly_RED,
    poly_BLACK,
    poly_EVEN,
    poly_1_18,
    lst13,
    lst14,
    lst15,
    lst16,
    lst17,
    lst18,
    lst19,
    lst20,
    lst21,
    lst22,
    lst23,
    lst24,
    lst25,
    lst26,
    lst27,
    lst28,
    lst29,
    lst30,
    lst31,
    lst32,
    lst33,
    lst34,
    lst35,
    lst36,
    rspt0_00,
    rspt1,
    rspt2,
    rspt3,
    rspt4,
    rspt5,
    rspt6,
    rspt7,
    rspt8,
    rspt9,
    rspt10,
    rspt11,
    rspt12,
    rspt37,
    rspt14,
    rspt15,
    rspt16,
    rspt17,
    rspt18,
    rspt19,
    rspt20,
    rspt21,
    rspt22,
    rspt23,
    rspt24,
    rspt25,
    rspt26,
    rspt27,
    rspt28,
    rspt29,
    rspt30,
    rspt31,
    rspt32,
    rspt33,
    rspt34,
    rspt35,
    rspt36,
    rspt38,
    rc2_0_00,
    rc_0_1_2,
    rc_00_2_3,
    lst1,
    lst2,
    lst3,
    lst4,
    lst5,
    lst6,
    lst7,
    lst8,
    lst9,
    lst10,
    lst11,
    lst12,
    cor1,
    cor2,
    cor3,
    cor4,
    cor5,
    cor6,
    cor7,
    cor8,
    cor9,
    cor10,
    cor11,
    cor12,
    cor13,
    cor14,
    cor15,
    cor16,
    cor17,
    cor18,
    cor19,
    cor20,
    cor21,
    cor22,
    rcstpair1,
    rcstpair2,
    rcstpair3,
    rcstpair4,
    rcstpair5,
    rcstpair6,
    rcstpair7,
    rcstpair8,
    rcstpair9,
    rcstpair10,
    rcstpair11,
    rc_0_00_1_2_3};
  /**
   * Creates the instance of RoomSkin class or subclass for specified className.
   * Subclass must provides a static method getInstance which returns the
   * instance of class. In other words subclass can also implements the
   * Singleton pattern. If specified class can not be instantiated, this method
   * return the instance of RoomSkin class.
   */
  public static RouletteRoomSkin getInstance(String className) {
    if (className == null) {
      className = RouletteRoomSkin.class.getName();
    }
    RouletteRoomSkin result = null;
    try {
      Class roomClass = Class.forName(className);
      Method getInstance = roomClass.getMethod("getInstance", null);
      result = (RouletteRoomSkin) getInstance.invoke(null, null);
    }
    catch (Exception ex) {
      _cat.fatal("get instance of room skin", ex);
    }
    return result;
  }

  /**
   * Returns the single instance of RoomSkin class.
   */
  public static RouletteRoomSkin getInstance() {
    if (instance == null) {
      instance = new RouletteRoomSkin();
    }
    return instance;
  }

  protected RouletteRoomSkin() {
	    super.init();
	    //   System.out.println("================init()====RouletteRoomSkin======");
	       Toolkit toolkit = Toolkit.getDefaultToolkit();
	   	// Get the current screen size
	   	scrnsize = toolkit.getScreenSize();
	   	ClientConfig.MAXIMISED_SCREEN_WIDTH = scrnsize.width;
	   	ClientConfig.MAXIMISED_SCREEN_HEIGHT = scrnsize.height;
	   	double w = scrnsize.width;
	   	double h = scrnsize.height;
	   	maxWidth = w/ClientConfig.DEFAULT_SCREEN_WIDTH;
	   	maxHeight = h/ClientConfig.DEFAULT_SCREEN_HEIGHT;
	   	int newScrWidth = scrnsize.width, newScrHeight = scrnsize.height;
	       background = Utils.getIcon("images/rouletteback.png");
	   	background.setImage(background.getImage().getScaledInstance(background.getIconWidth()*newScrWidth/ClientConfig.DEFAULT_SCREEN_WIDTH, 
	   							background.getIconHeight()*newScrHeight/ClientConfig.DEFAULT_SCREEN_HEIGHT, Image.SCALE_SMOOTH));
	   	double z = 8400 * maxWidth/37;
	       int zint = (int) (z);
	       int x= (int)(8400 * maxWidth);
	       int y = zint * 37 - x;
	       rouletteWheel = new ImageIcon();
	   	rouletteWheel.setImage(Utils.getIcon(ClientConfig.WHEEL).getImage().getScaledInstance((int)(8400*maxWidth)+y,(int)(140*maxHeight), Image.SCALE_SMOOTH));
//	       maximizeButImage = new CropImageIcon(Utils.getIcon("images/fullscreen.png"), 0, 14, 16,14).getIcon();
	     }
  
  public void applyNormalModeToAllComponents(Dimension newScreen, ClientRoom room) {
	  scrnsize= newScreen;
	  if(room.getClientCasinoController()!=null ){
			background = Utils.getIcon("images/rouletteback.png");
			background.setImage(room.getClientCasinoController().background.getImage().getScaledInstance(800, 600, Image.SCALE_FAST));
			maximizeButImage = new CropImageIcon(Utils.getIcon("images/fullscreen.png"), 0, 16, 16,16).getIcon();
	  }
	  resetPolyPts();
	  setRegPoints();
  }
  
  public void applyMaximiseModeToAllComponents(Dimension newScreen, ClientRoom room) {
	  	scrnsize= newScreen;
		//int newScrWidth = newScreen.width/ClientConfig.DEFAULT_SCREEN_WIDTH, newScrHeight = newScreen.height/orgScreenHeight;
		int newScrWidth = newScreen.width, newScrHeight = newScreen.height;
//		if(background.getIconWidth()>ClientConfig.DEFAULT_SCREEN_WIDTH) return;
		
		//background.setImage(room.getClientPokerController().view.getBackground().getImage().getScaledInstance(room.getClientPokerController().view.getBackground().getIconWidth()*newScrWidth/ClientConfig.DEFAULT_SCREEN_WIDTH, room.getClientPokerController().view.getBackground().getIconHeight()*newScrHeight/ClientConfig.DEFAULT_SCREEN_HEIGHT, Image.SCALE_FAST));
//		background.setImage(room.getClientCasinoController().background.getImage().getScaledInstance(room.getClientCasinoController().background.getIconWidth()*newScrWidth/ClientConfig.DEFAULT_SCREEN_WIDTH, room.getClientCasinoController().background.getIconHeight()*newScrHeight/ClientConfig.DEFAULT_SCREEN_HEIGHT, Image.SCALE_SMOOTH));
//		maximizeButImage = new CropImageIcon(Utils.getIcon("images/fullscreen.png"), 0, 16, 16,16).getIcon();
//		maximizeButImage.setImage(maximizeButImage.getImage().getScaledInstance((int)(16*maxWidth), (int)(16*maxHeight), Image.SCALE_FAST));
		maxPolyPts();
		setRegPoints();
  }
  private void setRegPoints()
  {
	  
		
	  poly0 = new int [][]{ p01, p02, p03, p04 };

	  poly00 = new int [][]{ p001, p002, p003, p004 };

	  poly1 = new int [][]{ p11, p12, p13, p14 };

	  poly2 = new int [][]{ p21, p22, p23, p24 };

	  poly3 = new int [][]{ p31, p32, p33, p34 };

	  poly4 = new int [][]{ p41, p42, p43, p44 };

	  poly5 = new int [][]{ p51, p52, p53, p54 };

	  poly6 = new int [][]{ p61, p62, p63, p64 };

	  poly7 = new int [][]{ p71, p72, p73, p74};

	  poly8 = new int [][]{ p81, p82, p83, p84 };

	  poly9 = new int [][]{ p91, p92, p93, p94 };

	  poly10 = new int [][]{ p101, p102, p103, p104 };

	  poly11 = new int [][]{ p111, p112, p113, p114 };

	  poly12 = new int [][]{ p121, p122, p123, p124 };

	  poly13 = new int [][]{ p131, p132, p133, p134 };

	  poly14 = new int [][]{ p141, p142, p143, p144 };

	  poly15 = new int [][]{ p151, p152, p153, p154 };

	  poly16 = new int [][]{ p161, p162, p163, p164 };

	  poly17 = new int [][]{ p171, p172, p173, p174 };

	  poly18 = new int [][]{ p181, p182, p183, p184 };

	  poly19 = new int [][]{ p191, p192, p193, p194 };

	  poly20 = new int [][]{ p201, p202, p203, p204 };

	  poly21 = new int [][]{ p211, p212, p213, p214 };

	  poly22 = new int [][]{ p221, p222, p223, p224 };

	  poly23 = new int [][]{ p231, p232, p233, p234 };

	  poly24 = new int [][]{ p241, p242, p243, p244 };

	  poly25 = new int [][]{ p251, p252, p253, p254 };

	  poly26 = new int [][]{ p261, p262, p263, p264 };

	  poly27 = new int [][]{ p271, p272, p273, p274 };

	  poly28 = new int [][]{ p281, p282, p283, p284};

	  poly29 = new int [][]{ p291, p292, p293, p294 };

	  poly30 = new int [][]{ p301, p302, p303, p304 };

	  poly31 = new int [][]{ p311, p312, p313, p314 };

	  poly32 = new int [][]{ p321, p322, p323, p324 };

	  poly33 = new int [][]{ p331, p332, p333, p334 };

	  poly34 = new int [][]{ p341, p342, p343, p344 };

	  poly35 = new int [][]{ p351, p352, p353, p354 };

	  poly36 = new int [][]{ p361, p362, p363, p364 };

	  poly_2to1_1 = new int [][]{ p1_2to1_1, p1_2to1_2,
	  	  p1_2to1_3, p1_2to1_4 };

	  poly_2to1_2 = new int [][]{ p2_2to1_1, p2_2to1_2,
	  	  p2_2to1_3, p2_2to1_4 };

	  poly_2to1_3 = new int [][]{ p3_2to1_1, p3_2to1_2,
	  	  p3_2to1_3, p3_2to1_4 };

	  poly_12_3 = new int [][]{ p3_12_1, p3_12_2, p3_12_3,
	  	  p3_12_4 };

	  poly_12_2 = new int [][]{ p2_12_1, p2_12_2, p2_12_3,
	  	  p2_12_4 };

	  poly_12_1 = new int [][]{ p1_12_1, p1_12_2, p1_12_3,
	  	  p1_12_4 };

	  poly_19_36 = new int [][]{ p19_36_1, p19_36_2,
	  	  p19_36_3, p19_36_4 };

	  poly_ODD = new int [][]{ pODD_1, pODD_2, pODD_3, pODD_4 };

	  poly_RED = new int [][]{ pRED_1, pRED_2, pRED_3, pRED_4 };

	  poly_BLACK = new int [][]{ pBLACK_1, pBLACK_2,
	  	  pBLACK_3, pBLACK_4 };

	  poly_EVEN = new int [][]{ pEVEN1, pEVEN2, pEVEN3, pEVEN4};

	  poly_1_18 = new int [][]{ p1_18_1, p1_18_2, p1_18_3,
	  	  p1_18_4 };
	  reg_four_nos =   new int[][][] {cor1,
			    cor2,
			    cor3,
			    cor4,
			    cor5,
			    cor6,
			    cor7,
			    cor8,
			    cor9,
			    cor10,
			    cor11,
			    cor12,
			    cor13,
			    cor14,
			    cor15,
			    cor16,
			    cor17,
			    cor18,
			    cor19,
			    cor20,
			    cor21,
			    cor22};
	  

	  lst1 = new int[][]{
	        ptsts1_1, ptsts1_2};
	  lst2 = new int[][]{
	        ptsts2_1, ptsts2_2};
	  lst3 = new int[][]{
	        ptsts3_1, ptsts3_2};
	  lst4 = new int[][]{
	        ptsts4_1, ptsts4_2};
	  lst6 = new int[][]{
	        ptsts6_1, ptsts6_2};
	  lst5 = new int[][]{
	        ptsts5_1, ptsts5_2};
	  lst7 = new int[][]{
	        ptsts7_1, ptsts7_2};
	  lst8 = new int[][]{
	        ptsts8_1, ptsts8_2};
	  lst9 = new int[][]{
	        ptsts9_1, ptsts9_2};
	  lst10 = new int[][]{
	        ptsts10_1, ptsts10_2};
	  lst11 = new int[][]{
	        ptsts11_1, ptsts11_2};
	  lst12 = new int[][]{
	        ptsts12_1, ptsts12_2};
	  
	  reg_three_nos = new int[][][]
	    {rc2_0_00,
	    rc_0_1_2,
	    rc_00_2_3,
	    lst1,
	    lst2,
	    lst3,
	    lst4,
	    lst5,
	    lst6,
	    lst7,
	    lst8,
	    lst9,
	    lst10,
	    lst11,
	    lst12};
	  
	  lst13 = new int[][]{ ptsts2_1_1, ptsts2_1_2}; //For 1,2
	  lst14 = new int[][]{ ptsts2_2_1, ptsts2_2_2};//for 4,5
	  lst15 = new int[][]{ ptsts2_3_1, ptsts2_3_2};//for 7,8
	  lst16 = new int[][]{ ptsts2_4_1, ptsts2_4_2};//for 10,11
	  lst17 = new int[][]{ ptsts2_5_1, ptsts2_5_2};//for 13,14
	  lst18 = new int[][]{ ptsts2_6_1, ptsts2_6_2};//for 16,17
	  lst19 = new int[][]{ ptsts2_7_1, ptsts2_7_2};//for 19,20
	  lst20 = new int[][]{ ptsts2_8_1, ptsts2_8_2};//for 22,23
	  lst21 = new int[][]{ ptsts2_9_1, ptsts2_9_2};//for 25,26
	  lst22 = new int[][]{ ptsts2_10_1, ptsts2_10_2};//for 28,29
	  lst23 = new int[][]{ ptsts2_11_1, ptsts2_11_2};//for 31,32
	  lst24 = new int[][]{ ptsts2_12_1, ptsts2_12_2};//for 34,35
	  lst25 = new int[][]{ ptsts3_1_1, ptsts3_1_2};//for 2,3
	  lst26 = new int[][]{ ptsts3_2_1, ptsts3_2_2};//for 5,6
	  lst27 = new int[][]{ ptsts3_3_1, ptsts3_3_2};//for 8,9
	  lst28 = new int[][]{ ptsts3_4_1, ptsts3_4_2};//for 11,12
	  lst29 = new int[][]{ ptsts3_5_1, ptsts3_5_2};//for 14,15
	  lst30 = new int[][]{ ptsts3_6_1, ptsts3_6_2};//for 17,18
	  lst31 = new int[][]{ ptsts3_7_1, ptsts3_7_2};//for 20,21
	  lst32 = new int[][]{ ptsts3_8_1, ptsts3_8_2};//for 23,24
	  lst33 = new int[][]{ ptsts3_9_1, ptsts3_9_2};//for 26,27
	  lst34 = new int[][]{ ptsts3_10_1, ptsts3_10_2};//for 29,30
	  lst35 = new int[][]{ ptsts3_11_1, ptsts3_11_2};//for 32,33
	  lst36 = new int[][]{ ptsts3_12_1, ptsts3_12_2};//for 35,36
	  rspt0_00 = new int[][]{ ptrspt0_00_1, ptrspt0_00_2};
	  rspt1 = new int[][]{ ptrspt0_1_1, ptrspt0_1_2};
	  rspt2 = new int[][]{ ptrspt1_2_1, ptrspt1_2_2};//for 1,4
	  rspt3 = new int[][]{ ptrspt1_3_1, ptrspt1_3_2};//for 4,7
	  rspt4 = new int[][]{ ptrspt1_4_1, ptrspt1_4_2};//for 7,10
	  rspt5 = new int[][]{ ptrspt1_5_1, ptrspt1_5_2};//for 10,13
	  rspt6 = new int[][]{ ptrspt1_6_1, ptrspt1_6_2};//for 13,16
	  rspt7 = new int[][]{ ptrspt1_7_1, ptrspt1_7_2};//for 16,19
	  rspt8 = new int[][]{ ptrspt1_8_1, ptrspt1_8_2};//for 19,22
	  rspt9 = new int[][]{ ptrspt1_9_1, ptrspt1_9_2};//for 22,25
	  rspt10 = new int[][]{ ptrspt1_10_1, ptrspt1_10_2};//for 25,28
	  rspt11 = new int[][]{ ptrspt1_11_1, ptrspt1_11_2};//for 28,31
	  rspt12 = new int[][]{ ptrspt1_12_1, ptrspt1_12_2};//for 31,34
	  rspt14 = new int[][]{ ptrspt2_2_1, ptrspt2_2_2};//for 2,5
	  rspt15 = new int[][]{ ptrspt2_3_1, ptrspt2_3_2};//for 5,8
	  rspt16 = new int[][]{ ptrspt2_4_1, ptrspt2_4_2};//for 8,11
	  rspt17 = new int[][]{ ptrspt2_5_1, ptrspt2_5_2};//for 11,14
	  rspt18 = new int[][]{ ptrspt2_6_1, ptrspt2_6_2};//for 14,17
	  rspt19 = new int[][]{ ptrspt2_7_1, ptrspt2_7_2};//for 17,20
	  rspt20 = new int[][]{ ptrspt2_8_1, ptrspt2_8_2};//for 20,23
	  rspt21 = new int[][]{ ptrspt2_9_1, ptrspt2_9_2};//for 23,26
	  rspt22 = new int[][]{ ptrspt2_10_1, ptrspt2_10_2};//for 26,29
	  rspt23 = new int[][]{ ptrspt2_11_1, ptrspt2_11_2};//for 29,32
	  rspt24 = new int[][]{ ptrspt2_12_1, ptrspt2_12_2};//for 32,35
	  rspt25 = new int[][]{ ptrspt3_1_1, ptrspt3_1_2};//for 00,3
	  rspt26 = new int[][]{ ptrspt3_2_1, ptrspt3_2_2};//for 3,6
	  rspt27 = new int[][]{ ptrspt3_3_1, ptrspt3_3_2};//for 6,9
	  rspt28 = new int[][]{ ptrspt3_4_1, ptrspt3_4_2};//for 9,12
	  rspt29 = new int[][]{ ptrspt3_5_1, ptrspt3_5_2};//for 12,15
	  rspt30 = new int[][]{ ptrspt3_6_1, ptrspt3_6_2};//for 15,18
	  rspt31 = new int[][]{ ptrspt3_7_1, ptrspt3_7_2};//for 18,21
	  rspt32 = new int[][]{ ptrspt3_8_1, ptrspt3_8_2};//for 21,24
	  rspt33 = new int[][]{ ptrspt3_9_1, ptrspt3_9_2};//for 24,27
	  rspt34 = new int[][]{ ptrspt3_10_1, ptrspt3_10_2};//for 27,30
	  rspt35 = new int[][]{ ptrspt3_11_1, ptrspt3_11_2};//for 30,33
	  rspt36 = new int[][]{ ptrspt3_12_1, ptrspt3_12_2};//for 33,36
	  rspt37 = new int[][]{ ptrspt2_2_0_1, ptrspt2_2_0_2};//for 0,2
	  rspt38 = new int[][]{ ptrspt2_2_00_1, ptrspt2_2_00_2};//for 00,2

	  REG_POINTS = new int [][][]{
	    poly0,
	    poly1,
	    poly2,
	    poly3,
	    poly4,
	    poly5,
	    poly6,
	    poly7,
	    poly8,
	    poly9,
	    poly10,
	    poly11,
	    poly12,
	    poly13,
	    poly14,
	    poly15,
	    poly16,
	    poly17,
	    poly18,
	    poly19,
	    poly20,
	    poly21,
	    poly22,
	    poly23,
	    poly24,
	    poly25,
	    poly26,
	    poly27,
	    poly28,
	    poly29,
	    poly30,
	    poly31,
	    poly32,
	    poly33,
	    poly34,
	    poly35,
	    poly36,
	    poly00,
	    poly_2to1_1,
	    poly_2to1_2,
	    poly_2to1_3,
	    poly_12_3,
	    poly_12_2,
	    poly_12_1,
	    poly_19_36,
	    poly_ODD,
	    poly_RED,
	    poly_BLACK,
	    poly_EVEN,
	    poly_1_18,
	    lst13,
	    lst14,
	    lst15,
	    lst16,
	    lst17,
	    lst18,
	    lst19,
	    lst20,
	    lst21,
	    lst22,
	    lst23,
	    lst24,
	    lst25,
	    lst26,
	    lst27,
	    lst28,
	    lst29,
	    lst30,
	    lst31,
	    lst32,
	    lst33,
	    lst34,
	    lst35,
	    lst36,
	    rspt0_00,
	    rspt1,
	    rspt2,
	    rspt3,
	    rspt4,
	    rspt5,
	    rspt6,
	    rspt7,
	    rspt8,
	    rspt9,
	    rspt10,
	    rspt11,
	    rspt12,
	    rspt37,
	    rspt14,
	    rspt15,
	    rspt16,
	    rspt17,
	    rspt18,
	    rspt19,
	    rspt20,
	    rspt21,
	    rspt22,
	    rspt23,
	    rspt24,
	    rspt25,
	    rspt26,
	    rspt27,
	    rspt28,
	    rspt29,
	    rspt30,
	    rspt31,
	    rspt32,
	    rspt33,
	    rspt34,
	    rspt35,
	    rspt36,
	    rspt38,
	    rc2_0_00,
	    rc_0_1_2,
	    rc_00_2_3,
	    lst1,
	    lst2,
	    lst3,
	    lst4,
	    lst5,
	    lst6,
	    lst7,
	    lst8,
	    lst9,
	    lst10,
	    lst11,
	    lst12,
	    cor1,
	    cor2,
	    cor3,
	    cor4,
	    cor5,
	    cor6,
	    cor7,
	    cor8,
	    cor9,
	    cor10,
	    cor11,
	    cor12,
	    cor13,
	    cor14,
	    cor15,
	    cor16,
	    cor17,
	    cor18,
	    cor19,
	    cor20,
	    cor21,
	    cor22,
	    rcstpair1,
	    rcstpair2,
	    rcstpair3,
	    rcstpair4,
	    rcstpair5,
	    rcstpair6,
	    rcstpair7,
	    rcstpair8,
	    rcstpair9,
	    rcstpair10,
	    rcstpair11,
	    rc_0_00_1_2_3};
	  

  }
  
  public ImageIcon getMaximizeButImage() {
	return maximizeButImage;
  }
  public void maxPolyPts()
  {


	  p01= new int[]{(int)(352*maxWidth),(int)(maxHeight*217)};
	  p02= new int[]{(int)(323*maxWidth),(int)(maxHeight*217)};
	  p03= new int[]{(int)(323*maxWidth),(int)(maxHeight*432)};
	  p04= new int[]{(int)(352*maxWidth),(int)(maxHeight*432)};
	 
	  p001= new int[]{(int)(328*maxWidth),(int)(maxHeight*391)};
	  p002= new int[]{(int)(344*maxWidth),(int)(maxHeight*383)};
	  p003= new int[]{(int)(345*maxWidth),(int)(maxHeight*409)};
	  p004= new int[]{(int)(328*maxWidth),(int)(maxHeight*414)};


	  p11= new int[]{(int)(384*maxWidth),(int)(maxHeight*362)};
	  p12= new int[]{(int)(357*maxWidth),(int)(maxHeight*362)};
	  p13= new int[]{(int)(357*maxWidth),(int)(maxHeight*428)};
	  p14= new int[]{(int)(384*maxWidth),(int)(maxHeight*428)};

	  p21= new int[]{(int)(384*maxWidth),(int)(maxHeight*291)};
	  p22= new int[]{(int)(357*maxWidth),(int)(maxHeight*291)};
	  p23= new int[]{(int)(357*maxWidth),(int)(maxHeight*356)};
	  p24= new int[]{(int)(384*maxWidth),(int)(maxHeight*356)};

	  p31= new int[]{(int)(384*maxWidth),(int)(maxHeight*219)};
	  p32= new int[]{(int)(357*maxWidth),(int)(maxHeight*219)};
	  p33= new int[]{(int)(357*maxWidth),(int)(maxHeight*285)};
	  p34= new int[]{(int)(384*maxWidth),(int)(maxHeight*285)};

	  p41= new int[]{(int)(417*maxWidth),(int)(maxHeight*362)};
	  p42= new int[]{(int)(390*maxWidth),(int)(maxHeight*362)};
	  p43= new int[]{(int)(390*maxWidth),(int)(maxHeight*426)};
	  p44= new int[]{(int)(417*maxWidth),(int)(maxHeight*426)};

	  p51= new int[]{(int)(417*maxWidth),(int)(maxHeight*290)};
	  p52= new int[]{(int)(390*maxWidth),(int)(maxHeight*290)};
	  p53= new int[]{(int)(390*maxWidth),(int)(maxHeight*356)};
	  p54= new int[]{(int)(417*maxWidth),(int)(maxHeight*356)};

	  p61= new int[]{(int)(417*maxWidth),(int)(maxHeight*219)};
	  p62= new int[]{(int)(389*maxWidth),(int)(maxHeight*219)};
	  p63= new int[]{(int)(390*maxWidth),(int)(maxHeight*285)};
	  p64= new int[]{(int)(417*maxWidth),(int)(maxHeight*284)};

	  p71= new int[]{(int)(451*maxWidth),(int)(maxHeight*362)};
	  p72= new int[]{(int)(423*maxWidth),(int)(maxHeight*362)};
	  p73= new int[]{(int)(423*maxWidth),(int)(maxHeight*427)};
	  p74= new int[]{(int)(451*maxWidth),(int)(maxHeight*427)};

	  p81= new int[]{(int)(451*maxWidth),(int)(maxHeight*290)};
	  p82= new int[]{(int)(423*maxWidth),(int)(maxHeight*290)};
	  p83= new int[]{(int)(423*maxWidth),(int)(maxHeight*356)};
	  p84= new int[]{(int)(451*maxWidth),(int)(maxHeight*356)};

	  p91= new int[]{(int)(451*maxWidth),(int)(maxHeight*219)};
	  p92= new int[]{(int)(423*maxWidth),(int)(maxHeight*219)};
	  p93= new int[]{(int)(423*maxWidth),(int)(maxHeight*284)};
	  p94= new int[]{(int)(451*maxWidth),(int)(maxHeight*284)};

	  p101= new int[]{(int)(484*maxWidth),(int)(maxHeight*362)};
	  p102= new int[]{(int)(457*maxWidth),(int)(maxHeight*362)};
	  p103= new int[]{(int)(457*maxWidth),(int)(maxHeight*427)};
	  p104= new int[]{(int)(484*maxWidth),(int)(maxHeight*427)};

	  p111= new int[]{(int)(484*maxWidth),(int)(maxHeight*290)};
	  p112= new int[]{(int)(457*maxWidth),(int)(maxHeight*290)};
	  p113= new int[]{(int)(457*maxWidth),(int)(maxHeight*356)};
	  p114= new int[]{(int)(484*maxWidth),(int)(maxHeight*356)};

	  p121= new int[]{(int)(484*maxWidth),(int)(maxHeight*219)};
	  p122= new int[]{(int)(457*maxWidth),(int)(maxHeight*219)};
	  p123= new int[]{(int)(457*maxWidth),(int)(maxHeight*284)};
	  p124= new int[]{(int)(484*maxWidth),(int)(maxHeight*284)};

	  p131= new int[]{(int)(517*maxWidth),(int)(maxHeight*362)};
	  p132= new int[]{(int)(490*maxWidth),(int)(maxHeight*362)};
	  p133= new int[]{(int)(490*maxWidth),(int)(maxHeight*427)};
	  p134= new int[]{(int)(517*maxWidth),(int)(maxHeight*427)};

	  p141= new int[]{(int)(517*maxWidth),(int)(maxHeight*290)};
	  p142= new int[]{(int)(490*maxWidth),(int)(maxHeight*290)};
	  p143= new int[]{(int)(490*maxWidth),(int)(maxHeight*356)};
	  p144= new int[]{(int)(517*maxWidth),(int)(maxHeight*356)};

	  p151= new int[]{(int)(517*maxWidth),(int)(maxHeight*219)};
	  p152= new int[]{(int)(490*maxWidth),(int)(maxHeight*219)};
	  p153= new int[]{(int)(490*maxWidth),(int)(maxHeight*284)};
	  p154= new int[]{(int)(517*maxWidth),(int)(maxHeight*284)};

	  p161= new int[]{(int)(551*maxWidth),(int)(maxHeight*362)};
	  p162= new int[]{(int)(523*maxWidth),(int)(maxHeight*362)};
	  p163= new int[]{(int)(523*maxWidth),(int)(maxHeight*427)};
	  p164= new int[]{(int)(551*maxWidth),(int)(maxHeight*427)};

	  p171= new int[]{(int)(550*maxWidth),(int)(maxHeight*291)};
	  p172= new int[]{(int)(523*maxWidth),(int)(maxHeight*291)};
	  p173= new int[]{(int)(523*maxWidth),(int)(maxHeight*356)};
	  p174= new int[]{(int)(550*maxWidth),(int)(maxHeight*356)};

	  p181= new int[]{(int)(551*maxWidth),(int)(maxHeight*219)};
	  p182= new int[]{(int)(523*maxWidth),(int)(maxHeight*219)};
	  p183= new int[]{(int)(523*maxWidth),(int)(maxHeight*284)};
	  p184= new int[]{(int)(551*maxWidth),(int)(maxHeight*284)};

	  p191= new int[]{(int)(584*maxWidth),(int)(maxHeight*362)};
	  p192= new int[]{(int)(556*maxWidth),(int)(maxHeight*362)};
	  p193= new int[]{(int)(556*maxWidth),(int)(maxHeight*427)};
	  p194= new int[]{(int)(584*maxWidth),(int)(maxHeight*427)};

	  p201= new int[]{(int)(584*maxWidth),(int)(maxHeight*290)};
	  p202= new int[]{(int)(557*maxWidth),(int)(maxHeight*290)};
	  p203= new int[]{(int)(557*maxWidth),(int)(maxHeight*356)};
	  p204= new int[]{(int)(584*maxWidth),(int)(maxHeight*356)};

	  p211= new int[]{(int)(584*maxWidth),(int)(maxHeight*219)};
	  p212= new int[]{(int)(557*maxWidth),(int)(maxHeight*219)};
	  p213= new int[]{(int)(557*maxWidth),(int)(maxHeight*284)};
	  p214= new int[]{(int)(584*maxWidth),(int)(maxHeight*284)};

	  p221= new int[]{(int)(616*maxWidth),(int)(maxHeight*362)};
	  p222= new int[]{(int)(590*maxWidth),(int)(maxHeight*362)};
	  p223= new int[]{(int)(590*maxWidth),(int)(maxHeight*427)};
	  p224= new int[]{(int)(616*maxWidth),(int)(maxHeight*427)};
	  
	  p231= new int[]{(int)(617*maxWidth),(int)(maxHeight*290)};
	  p232= new int[]{(int)(590*maxWidth),(int)(maxHeight*290)};
	  p233= new int[]{(int)(590*maxWidth),(int)(maxHeight*356)};
	  p234= new int[]{(int)(617*maxWidth),(int)(maxHeight*356)};


	  p241= new int[]{(int)(617*maxWidth),(int)(maxHeight*219)};
	  p242= new int[]{(int)(590*maxWidth),(int)(maxHeight*219)};
	  p243= new int[]{(int)(590*maxWidth),(int)(maxHeight*284)};
	  p244= new int[]{(int)(617*maxWidth),(int)(maxHeight*284)};

	  p251= new int[]{(int)(651*maxWidth),(int)(maxHeight*362)};
	  p252= new int[]{(int)(623*maxWidth),(int)(maxHeight*361)};
	  p253= new int[]{(int)(623*maxWidth),(int)(maxHeight*428)};
	  p254= new int[]{(int)(651*maxWidth),(int)(maxHeight*428)};

	  p261= new int[]{(int)(650*maxWidth),(int)(maxHeight*290)};
	  p262= new int[]{(int)(623*maxWidth),(int)(maxHeight*290)};
	  p263= new int[]{(int)(623*maxWidth),(int)(maxHeight*356)};
	  p264= new int[]{(int)(650*maxWidth),(int)(maxHeight*356)};

	  p271= new int[]{(int)(651*maxWidth),(int)(maxHeight*219)};
	  p272= new int[]{(int)(623*maxWidth),(int)(maxHeight*219)};
	  p273= new int[]{(int)(623*maxWidth),(int)(maxHeight*284)};
	  p274= new int[]{(int)(651*maxWidth),(int)(maxHeight*284)};

	  p281= new int[]{(int)(684*maxWidth),(int)(maxHeight*362)};
	  p282= new int[]{(int)(657*maxWidth),(int)(maxHeight*362)};
	  p283= new int[]{(int)(657*maxWidth),(int)(maxHeight*427)};
	  p284= new int[]{(int)(684*maxWidth),(int)(maxHeight*427)};

	  p291= new int[]{(int)(684*maxWidth),(int)(maxHeight*290)};
	  p292= new int[]{(int)(657*maxWidth),(int)(maxHeight*290)};
	  p293= new int[]{(int)(656*maxWidth),(int)(maxHeight*356)};
	  p294= new int[]{(int)(684*maxWidth),(int)(maxHeight*356)};

	  p301= new int[]{(int)(684*maxWidth),(int)(maxHeight*219)};
	  p302= new int[]{(int)(657*maxWidth),(int)(maxHeight*219)};
	  p303= new int[]{(int)(657*maxWidth),(int)(maxHeight*284)};
	  p304= new int[]{(int)(684*maxWidth),(int)(maxHeight*284)};

	  p311= new int[]{(int)(717*maxWidth),(int)(maxHeight*362)};
	  p312= new int[]{(int)(690*maxWidth),(int)(maxHeight*362)};
	  p313= new int[]{(int)(690*maxWidth),(int)(maxHeight*427)};
	  p314= new int[]{(int)(717*maxWidth),(int)(maxHeight*427)};

	  p321= new int[]{(int)(717*maxWidth),(int)(maxHeight*290)};
	  p322= new int[]{(int)(690*maxWidth),(int)(maxHeight*290)};
	  p323= new int[]{(int)(690*maxWidth),(int)(maxHeight*356)};
	  p324= new int[]{(int)(717*maxWidth),(int)(maxHeight*356)};

	  p331= new int[]{(int)(718*maxWidth),(int)(maxHeight*219)};
	  p332= new int[]{(int)(690*maxWidth),(int)(maxHeight*219)};
	  p333= new int[]{(int)(690*maxWidth),(int)(maxHeight*284)};
	  p334= new int[]{(int)(718*maxWidth),(int)(maxHeight*284)};

	  p341= new int[]{(int)(750*maxWidth),(int)(maxHeight*362)};
	  p342= new int[]{(int)(723*maxWidth),(int)(maxHeight*362)};
	  p343= new int[]{(int)(723*maxWidth),(int)(maxHeight*427)};
	  p344= new int[]{(int)(750*maxWidth),(int)(maxHeight*427)};

	  p351= new int[]{(int)(750*maxWidth),(int)(maxHeight*290)};
	  p352= new int[]{(int)(723*maxWidth),(int)(maxHeight*290)};
	  p353= new int[]{(int)(723*maxWidth),(int)(maxHeight*356)};
	  p354= new int[]{(int)(750*maxWidth),(int)(maxHeight*356)};

	  p361= new int[]{(int)(750*maxWidth),(int)(maxHeight*219)};
	  p362= new int[]{(int)(723*maxWidth),(int)(maxHeight*219)};
	  p363= new int[]{(int)(723*maxWidth),(int)(maxHeight*284)};
	  p364= new int[]{(int)(750*maxWidth),(int)(maxHeight*284)};


	  p1_2to1_1= new int[]{(int)(787*maxWidth),(int)(maxHeight*360)};
	  p1_2to1_2= new int[]{(int)(754*maxWidth),(int)(maxHeight*360)};
	  p1_2to1_3= new int[]{(int)(754*maxWidth),(int)(maxHeight*432)};
	  p1_2to1_4= new int[]{(int)(787*maxWidth),(int)(maxHeight*432)};

	  p2_2to1_1= new int[]{(int)(787*maxWidth),(int)(maxHeight*288)};
	  p2_2to1_2= new int[]{(int)(754*maxWidth),(int)(maxHeight*288)};
	  p2_2to1_3= new int[]{(int)(754*maxWidth),(int)(maxHeight*360)};
	  p2_2to1_4= new int[]{(int)(787*maxWidth),(int)(maxHeight*360)};

	  p3_2to1_1= new int[]{(int)(787*maxWidth),(int)(maxHeight*217)};
	  p3_2to1_2= new int[]{(int)(754*maxWidth),(int)(maxHeight*217)};
	  p3_2to1_3= new int[]{(int)(754*maxWidth),(int)(maxHeight*288)};
	  p3_2to1_4= new int[]{(int)(787*maxWidth),(int)(maxHeight*288)};


	  p3_12_1= new int[]{(int)(755*maxWidth),(int)(maxHeight*433)};
	  p3_12_2= new int[]{(int)(621*maxWidth),(int)(maxHeight*433)};
	  p3_12_3= new int[]{(int)(621*maxWidth),(int)(maxHeight*478)};
	  p3_12_4= new int[]{(int)(755*maxWidth),(int)(maxHeight*478)};

	  p2_12_1= new int[]{(int)(621*maxWidth),(int)(maxHeight*432)};
	  p2_12_2= new int[]{(int)(488*maxWidth),(int)(maxHeight*432)};
	  p2_12_3= new int[]{(int)(488*maxWidth),(int)(maxHeight*478)};
	  p2_12_4= new int[]{(int)(621*maxWidth),(int)(maxHeight*478)};

	  p1_12_1= new int[]{(int)(488*maxWidth),(int)(maxHeight*432)};
	  p1_12_2= new int[]{(int)(355*maxWidth),(int)(maxHeight*432)};
	  p1_12_3= new int[]{(int)(355*maxWidth),(int)(maxHeight*478)};
	  p1_12_4= new int[]{(int)(488*maxWidth),(int)(maxHeight*478)};

	  p19_36_1= new int[]{(int)(754*maxWidth),(int)(maxHeight*478)};
	  p19_36_2= new int[]{(int)(688*maxWidth),(int)(maxHeight*478)};
	  p19_36_3= new int[]{(int)(688*maxWidth),(int)(maxHeight*524)};
	  p19_36_4= new int[]{(int)(754*maxWidth),(int)(maxHeight*524)};

	  pODD_1= new int[]{(int)(688*maxWidth),(int)(maxHeight*478)};
	  pODD_2= new int[]{(int)(622*maxWidth),(int)(maxHeight*478)};
	  pODD_3= new int[]{(int)(622*maxWidth),(int)(maxHeight*524)};
	  pODD_4= new int[]{(int)(688*maxWidth),(int)(maxHeight*524)};

	  pRED_1= new int[]{(int)(621*maxWidth),(int)(maxHeight*478)};
	  pRED_2= new int[]{(int)(555*maxWidth),(int)(maxHeight*478)};
	  pRED_3= new int[]{(int)(555*maxWidth),(int)(maxHeight*524)};
	  pRED_4= new int[]{(int)(621*maxWidth),(int)(maxHeight*524)};

	  pBLACK_1= new int[]{(int)(555*maxWidth),(int)(maxHeight*478)};
	  pBLACK_2= new int[]{(int)(488*maxWidth),(int)(maxHeight*478)};
	  pBLACK_3= new int[]{(int)(488*maxWidth),(int)(maxHeight*524)};
	  pBLACK_4= new int[]{(int)(555*maxWidth),(int)(maxHeight*524)};

	  pEVEN1= new int[]{(int)(488*maxWidth),(int)(maxHeight*478)};
	  pEVEN2= new int[]{(int)(422*maxWidth),(int)(maxHeight*478)};
	  pEVEN3= new int[]{(int)(422*maxWidth),(int)(maxHeight*524)};
	  pEVEN4= new int[]{(int)(488*maxWidth),(int)(maxHeight*524)};

	  p1_18_1= new int[]{(int)(422*maxWidth),(int)(maxHeight*478)};
	  p1_18_2= new int[]{(int)(355*maxWidth),(int)(maxHeight*478)};
	  p1_18_3= new int[]{(int)(355*maxWidth),(int)(maxHeight*524)};
	  p1_18_4= new int[]{(int)(422*maxWidth),(int)(maxHeight*524)};
	  
	  

	  
	  region_coords = new int[][] {{(int)(maxWidth*318),(int)(maxHeight*292)},{(int)(maxWidth*359),(int)(maxHeight*382)},{(int)(maxWidth*358),(int)(maxHeight*317)},{(int)(maxWidth*359),(int)(maxHeight*243)},{(int)(maxWidth*393),(int)(maxHeight*382)},{(int)(maxWidth*392),(int)(maxHeight*317)},{(int)(maxWidth*392),(int)(maxHeight*243)},
		      {(int)(maxWidth*426),(int)(maxHeight*382)},{(int)(maxWidth*425),(int)(maxHeight*317)},{(int)(maxWidth*425),(int)(maxHeight*243)},{(int)(maxWidth*458),(int)(maxHeight*382)},{(int)(maxWidth*458),(int)(maxHeight*317)},{(int)(maxWidth*461),(int)(maxHeight*243)},{(int)(maxWidth*492),(int)(maxHeight*382)},//13
		      {(int)(maxWidth*491),(int)(maxHeight*317)},{(int)(maxWidth*491),(int)(maxHeight*243)},{(int)(maxWidth*525),(int)(maxHeight*382)},{(int)(maxWidth*524),(int)(maxHeight*317)},{(int)(maxWidth*524),(int)(maxHeight*243)},{(int)(maxWidth*557),(int)(maxHeight*382)},{(int)(maxWidth*557),(int)(maxHeight*317)},//20
		      {(int)(maxWidth*558),(int)(maxHeight*243)},{(int)(maxWidth*591),(int)(maxHeight*382)},{(int)(maxWidth*591),(int)(maxHeight*317)},{(int)(maxWidth*591),(int)(maxHeight*243)},{(int)(maxWidth*626),(int)(maxHeight*382)},{(int)(maxWidth*625),(int)(maxHeight*317)},{(int)(maxWidth*625),(int)(maxHeight*243)},//27
		      {(int)(maxWidth*656),(int)(maxHeight*382)},{(int)(maxWidth*657),(int)(maxHeight*317)},{(int)(maxWidth*657),(int)(maxHeight*243)},{(int)(maxWidth*689),(int)(maxHeight*382)},{(int)(maxWidth*692),(int)(maxHeight*317)},{(int)(maxWidth*692),(int)(maxHeight*243)},{(int)(maxWidth*725),(int)(maxHeight*382)},//34
		      {(int)(maxWidth*724),(int)(maxHeight*317)},{(int)(maxWidth*725),(int)(maxHeight*243)},{(int)(maxWidth*318),(int)(maxHeight*292)},														// 0 - 37		type 1
		      
		      {(int)(maxWidth*757),(int)(maxHeight*379)},{(int)(maxWidth*758),(int)(maxHeight*309)},{(int)(maxWidth*760),(int)(maxHeight*242)}													//type 8   38-40
		      ,{(int)(maxWidth*635),(int)(maxHeight*437)},{(int)(maxWidth*505),(int)(maxHeight*435)},{(int)(maxWidth*375),(int)(maxHeight*438)}												//type 7    41- 43
		      ,{(int)(maxWidth*697),(int)(maxHeight*487)},{(int)(maxWidth*629),(int)(maxHeight*484)},{(int)(maxWidth*563),(int)(maxHeight*485)},{(int)(maxWidth*494),(int)(maxHeight*487)},{(int)(maxWidth*427),(int)(maxHeight*486)},{(int)(maxWidth*360),(int)(maxHeight*484)},			//type 0    44-49
		      
		      {(int)(maxWidth*359),(int)(maxHeight*351)},{(int)(maxWidth*393),(int)(maxHeight*349)},{(int)(maxWidth*426),(int)(maxHeight*349)},{(int)(maxWidth*461),(int)(maxHeight*349)},{(int)(maxWidth*494),(int)(maxHeight*349)},{(int)(maxWidth*527),(int)(maxHeight*350)},
		      {(int)(maxWidth*560),(int)(maxHeight*349)},{(int)(maxWidth*594),(int)(maxHeight*349)},{(int)(maxWidth*629),(int)(maxHeight*349)},{(int)(maxWidth*660),(int)(maxHeight*349)},{(int)(maxWidth*694),(int)(maxHeight*349)},{(int)(maxWidth*727),(int)(maxHeight*348)},
		      {(int)(maxWidth*359),(int)(maxHeight*276)},{(int)(maxWidth*393),(int)(maxHeight*276)},{(int)(maxWidth*426),(int)(maxHeight*276)},{(int)(maxWidth*461),(int)(maxHeight*276)},{(int)(maxWidth*494),(int)(maxHeight*276)},{(int)(maxWidth*527),(int)(maxHeight*276)},
		      {(int)(maxWidth*560),(int)(maxHeight*276)},{(int)(maxWidth*594),(int)(maxHeight*276)},{(int)(maxWidth*629),(int)(maxHeight*276)},{(int)(maxWidth*660),(int)(maxHeight*276)},{(int)(maxWidth*694),(int)(maxHeight*276)},{(int)(maxWidth*727),(int)(maxHeight*276)},		//type 2    reg 50 - 73
		      
		      {(int)(maxWidth*318),(int)(maxHeight*292)},							//74
		      {(int)(maxWidth*347),(int)(maxHeight*382)}                         		 //75
		      
		      ,{(int)(maxWidth*380),(int)(maxHeight*384)},{(int)(maxWidth*413),(int)(maxHeight*384)},{(int)(maxWidth*447),(int)(maxHeight*384)},{(int)(maxWidth*479),(int)(maxHeight*384)},{(int)(maxWidth*510),(int)(maxHeight*384)},					
		      {(int)(maxWidth*548),(int)(maxHeight*384)},{(int)(maxWidth*579),(int)(maxHeight*384)},{(int)(maxWidth*614),(int)(maxHeight*384)},{(int)(maxWidth*648),(int)(maxHeight*384)},{(int)(maxWidth*680),(int)(maxHeight*384)},{(int)(maxWidth*713),(int)(maxHeight*384)},			//76-86
		      
		      {(int)(maxWidth*348),(int)(maxHeight*310)},//87
		      {(int)(maxWidth*380),(int)(maxHeight*308)},{(int)(maxWidth*413),(int)(maxHeight*308)},{(int)(maxWidth*447),(int)(maxHeight*308)},{(int)(maxWidth*479),(int)(maxHeight*308)},{(int)(maxWidth*510),(int)(maxHeight*308)},
		      {(int)(maxWidth*548),(int)(maxHeight*308)},{(int)(maxWidth*579),(int)(maxHeight*308)},{(int)(maxWidth*614),(int)(maxHeight*308)},{(int)(maxWidth*648),(int)(maxHeight*308)},{(int)(maxWidth*680),(int)(maxHeight*308)},{(int)(maxWidth*713),(int)(maxHeight*308)},				//88-98   type 2  
		      
		      
		      {(int)(maxWidth*348),(int)(maxHeight*239)},                                        //99
		      {(int)(maxWidth*380),(int)(maxHeight*240)},{(int)(maxWidth*413),(int)(maxHeight*240)},{(int)(maxWidth*447),(int)(maxHeight*240)},{(int)(maxWidth*479),(int)(maxHeight*240)},{(int)(maxWidth*510),(int)(maxHeight*240)},
		      {(int)(maxWidth*548),(int)(maxHeight*240)},{(int)(maxWidth*579),(int)(maxHeight*240)},{(int)(maxWidth*614),(int)(maxHeight*240)},{(int)(maxWidth*648),(int)(maxHeight*240)},{(int)(maxWidth*680),(int)(maxHeight*240)},{(int)(maxWidth*713),(int)(maxHeight*240)}, 	//100-110
		      
		      {(int)(maxWidth*349),(int)(maxHeight*313)},{(int)(maxWidth*349),(int)(maxHeight*313)},{(int)(maxWidth*348),(int)(maxHeight*352)},{(int)(maxWidth*347),(int)(maxHeight*282)},						//111-114
		      
		      
		      {(int)(maxWidth*360),(int)(maxHeight*201)},{(int)(maxWidth*395),(int)(maxHeight*201)},{(int)(maxWidth*429),(int)(maxHeight*201)},{(int)(maxWidth*460),(int)(maxHeight*201)},{(int)(maxWidth*493),(int)(maxHeight*201)},{(int)(maxWidth*529),(int)(maxHeight*201)},
		      {(int)(maxWidth*559),(int)(maxHeight*201)},{(int)(maxWidth*594),(int)(maxHeight*201)},{(int)(maxWidth*627),(int)(maxHeight*201)},{(int)(maxWidth*661),(int)(maxHeight*201)},{(int)(maxWidth*694),(int)(maxHeight*201)},{(int)(maxWidth*727),(int)(maxHeight*201)},          //type 3  reg 115-126
		      
		      
		      
		      {(int)(maxWidth*382),(int)(maxHeight*352)},{(int)(maxWidth*416),(int)(maxHeight*352)},{(int)(maxWidth*445),(int)(maxHeight*352)},{(int)(maxWidth*480),(int)(maxHeight*352)},{(int)(maxWidth*513),(int)(maxHeight*352)},{(int)(maxWidth*546),(int)(maxHeight*352)},					
		      {(int)(maxWidth*581),(int)(maxHeight*352)},{(int)(maxWidth*613),(int)(maxHeight*352)},{(int)(maxWidth*647),(int)(maxHeight*352)},{(int)(maxWidth*680),(int)(maxHeight*352)},{(int)(maxWidth*713),(int)(maxHeight*352)},    
		      
		      {(int)(maxWidth*382),(int)(maxHeight*280)},{(int)(maxWidth*416),(int)(maxHeight*280)},{(int)(maxWidth*445),(int)(maxHeight*280)},{(int)(maxWidth*480),(int)(maxHeight*280)},{(int)(maxWidth*513),(int)(maxHeight*280)},{(int)(maxWidth*546),(int)(maxHeight*280)},
		      {(int)(maxWidth*581),(int)(maxHeight*280)},{(int)(maxWidth*613),(int)(maxHeight*280)},{(int)(maxWidth*647),(int)(maxHeight*280)},{(int)(maxWidth*680),(int)(maxHeight*280)},{(int)(maxWidth*713),(int)(maxHeight*280)},		//127-149
		          
		      {(int)(maxWidth*382),(int)(maxHeight*425)},{(int)(maxWidth*416),(int)(maxHeight* 425)},{(int)(maxWidth*445),(int)(maxHeight* 425)},{(int)(maxWidth*480),(int)(maxHeight* 425)},{(int)(maxWidth*513),(int)(maxHeight* 425)},
		      {(int)(maxWidth*546),(int)(maxHeight* 425)},{(int)(maxWidth*581),(int)(maxHeight* 425)},{(int)(maxWidth*613),(int)(maxHeight* 425)},{(int)(maxWidth*647),(int)(maxHeight* 425)},{(int)(maxWidth*680),(int)(maxHeight* 425)},{(int)(maxWidth*713),(int)(maxHeight* 425)},								//150-160
		          {(int)(maxWidth*348),(int)(maxHeight* 425)}    //161
		  };

	 
	
	  
	  
	  
  
	 
	  cor1 = new int [][] {{(int)(maxWidth*
			  385),(int)(maxHeight*352)},{(int)(maxWidth*388),(int)(maxHeight*366)}}; /////For1),(int)(maxHeight*2),(int)(maxHeight*4),(int)(maxHeight*5

		  cor2 = new int [][] {{(int)(maxWidth*
			  418),(int)(maxHeight*352)},{(int)(maxWidth* 421),(int)(maxHeight*366)}}; /////For 4),(int)(maxHeight*5),(int)(maxHeight*7),(int)(maxHeight*8

		  cor3 = new int [][] {{(int)(maxWidth*
			  451),(int)(maxHeight* 352)},{(int)(maxWidth* 454),(int)(maxHeight* 366)}}; /////For 7),(int)(maxHeight*8),(int)(maxHeight*10),(int)(maxHeight*11

		  cor4 = new int [][] {{(int)(maxWidth*
			  485),(int)(maxHeight* 352)},{(int)(maxWidth* 488),(int)(maxHeight* 366)}}; /////For 10),(int)(maxHeight*11),(int)(maxHeight*13),(int)(maxHeight*14

		  cor5 = new int [][] {{(int)(maxWidth*
			  518),(int)(maxHeight* 352)},{(int)(maxWidth* 521),(int)(maxHeight* 366)}}; /////For 13),(int)(maxHeight*14),(int)(maxHeight*16),(int)(maxHeight*17

		  cor6 = new int [][] {{(int)(maxWidth*
			  551),(int)(maxHeight* 352)},{(int)(maxWidth* 554),(int)(maxHeight* 366)}}; /////For 16),(int)(maxHeight*17),(int)(maxHeight*19),(int)(maxHeight*20

		  cor7 = new int [][] {{(int)(maxWidth*
			  584),(int)(maxHeight* 352)},{(int)(maxWidth* 587),(int)(maxHeight* 366)}}; /////For 19),(int)(maxHeight*20),(int)(maxHeight*22),(int)(maxHeight*23

		  cor8 = new int [][] {{(int)(maxWidth*
			  619),(int)(maxHeight* 352)},{(int)(maxWidth* 621),(int)(maxHeight* 366)}}; /////For 22),(int)(maxHeight*23),(int)(maxHeight*25),(int)(maxHeight*26

		  cor9 = new int [][] {{(int)(maxWidth*
			  651),(int)(maxHeight* 352)},{(int)(maxWidth* 654),(int)(maxHeight* 366)}}; /////For 25),(int)(maxHeight*26),(int)(maxHeight*28),(int)(maxHeight*29

		  cor10 = new int [][] {{(int)(maxWidth*
			  684),(int)(maxHeight* 352)},{(int)(maxWidth* 687),(int)(maxHeight* 366)}}; /////For 28),(int)(maxHeight*29),(int)(maxHeight*31),(int)(maxHeight*32

		  cor11 = new int [][] {{(int)(maxWidth*
			  717),(int)(maxHeight* 352)},{(int)(maxWidth* 720),(int)(maxHeight* 366)}}; /////For 31),(int)(maxHeight*32),(int)(maxHeight*34),(int)(maxHeight*35

		  cor12 = new int [][] {{(int)(maxWidth*
			  385),(int)(maxHeight*281)},{(int)(maxWidth* 388),(int)(maxHeight*293)}}; /////For 2),(int)(maxHeight*3),(int)(maxHeight*5),(int)(maxHeight*6

		  cor13 = new int [][] {{(int)(maxWidth*
			  419),(int)(maxHeight*281)},{(int)(maxWidth* 421),(int)(maxHeight*293)}}; /////For 5),(int)(maxHeight*6),(int)(maxHeight*8),(int)(maxHeight*9

		  cor14 = new int [][] {{(int)(maxWidth*
		      451),(int)(maxHeight* 281)},{(int)(maxWidth* 454),(int)(maxHeight* 293)}}; /////For 8),(int)(maxHeight*9),(int)(maxHeight*11),(int)(maxHeight*12

		  cor15 = new int [][] {{(int)(maxWidth*
		      485),(int)(maxHeight* 281)},{(int)(maxWidth* 488),(int)(maxHeight* 293)}}; /////For 11),(int)(maxHeight*12),(int)(maxHeight*14),(int)(maxHeight*15

		  cor16 = new int [][] {{(int)(maxWidth*
		      519),(int)(maxHeight* 281)},{(int)(maxWidth* 521),(int)(maxHeight* 293)}}; /////For 14),(int)(maxHeight*15),(int)(maxHeight*17),(int)(maxHeight*18

		  cor17 = new int [][] {{(int)(maxWidth*
		      551),(int)(maxHeight* 281)},{(int)(maxWidth* 554),(int)(maxHeight* 293)}}; /////For 17),(int)(maxHeight*18),(int)(maxHeight*20),(int)(maxHeight*21

		  cor18 = new int [][] {{(int)(maxWidth*
		      584),(int)(maxHeight* 281)},{(int)(maxWidth* 587),(int)(maxHeight* 293)}}; /////For 20),(int)(maxHeight*21),(int)(maxHeight*23),(int)(maxHeight*24

		  cor19 = new int [][] {{(int)(maxWidth*
		      619),(int)(maxHeight* 281)},{(int)(maxWidth* 621),(int)(maxHeight* 293)}}; /////For 23),(int)(maxHeight*24),(int)(maxHeight*26),(int)(maxHeight*27

		  cor20 = new int [][] {{(int)(maxWidth*
		      651),(int)(maxHeight* 281)},{(int)(maxWidth* 654),(int)(maxHeight* 293)}}; /////For 26),(int)(maxHeight*27),(int)(maxHeight*29),(int)(maxHeight*30

		  cor21 = new int [][] {{(int)(maxWidth*
		      684),(int)(maxHeight* 281)},{(int)(maxWidth* 687),(int)(maxHeight* 293)}}; /////For 29),(int)(maxHeight*30),(int)(maxHeight*32),(int)(maxHeight*33

		  cor22 = new int [][] {{(int)(maxWidth*
		      717),(int)(maxHeight* 281)},{(int)(maxWidth* 720),(int)(maxHeight* 293)}}; /////For 32),(int)(maxHeight*33),(int)(maxHeight*35),(int)(maxHeight*36
		  
		  
		  rc2_0_00= new int [][] {{(int)(maxWidth*353),(int)(maxHeight*314)},{(int)(maxWidth*356),(int)(maxHeight*337)}};//for 0),(int)(maxHeight*00),(int)(maxHeight*2
		  rc_0_1_2= new int [][] {{(int)(maxWidth*353),(int)(maxHeight*355)},{(int)(maxWidth*356),(int)(maxHeight*368)}};//for 0),(int)(maxHeight*1),(int)(maxHeight*2
		  rc_00_2_3= new int [][] {{(int)(maxWidth*353),(int)(maxHeight*281)},{(int)(maxWidth*356),(int)(maxHeight*297)}};//for 00),(int)(maxHeight*2),(int)(maxHeight*3
		  
			ptsts1_1 = new int [] {(int)(maxWidth*361),(int)(maxHeight*212)};
			   ptsts1_2 = new int [] {(int)(maxWidth*378),(int)(maxHeight*215)};
			 

			// ptst= new int [] new int []2_1= new int []{(int)(maxWidth*343),(int)(maxHeight*186)};            ////4),(int)(maxHeight*5),(int)(maxHeight*6
			// ptsts2_2= new int []{(int)(maxWidth*371),(int)(maxHeight*170)};
			   ptsts2_1 = new int [] {(int)(maxWidth*394),(int)(maxHeight* 212)};
			   ptsts2_2 = new int [] {(int)(maxWidth*412),(int)(maxHeight* 215)};
			  

			// ptsts3_1= new int []{(int)(maxWidth*317),(int)(maxHeight*202)};			  ////7),(int)(maxHeight*8),(int)(maxHeight*9
			// ptsts3_2= new int []{(int)(maxWidth*343),(int)(maxHeight*187)};
			   ptsts3_1 = new int [] {(int)(maxWidth*428),(int)(maxHeight* 212)};
			   ptsts3_2 = new int [] {(int)(maxWidth*443),(int)(maxHeight* 215)};
			 
			// ptsts4_1= new int []{(int)(maxWidth*288),(int)(maxHeight*219)};			////10),(int)(maxHeight*11),(int)(maxHeight*12
			// ptsts4_2= new int []{(int)(maxWidth*316),(int)(maxHeight*203)};
			   ptsts4_1 = new int [] {(int)(maxWidth*459),(int)(maxHeight* 212)};
			   ptsts4_2 = new int [] {(int)(maxWidth*477),(int)(maxHeight* 215)};
			 

			// ptsts5_1= new int []{(int)(maxWidth*259),(int)(maxHeight*236)};			////13),(int)(maxHeight*14),(int)(maxHeight*15
			// ptsts5_2= new int []{(int)(maxWidth*287),(int)(maxHeight*220)};
			   ptsts5_1 = new int [] {(int)(maxWidth*494),(int)(maxHeight* 212)};
			   ptsts5_2 = new int [] {(int)(maxWidth*513),(int)(maxHeight* 215)};
			
			// ptsts6_1= new int []{(int)(maxWidth*230),(int)(maxHeight*254)};			////16),(int)(maxHeight*17),(int)(maxHeight*18
			// ptsts6_2= new int []{(int)(maxWidth*258),(int)(maxHeight*237)};
			   ptsts6_1 = new int [] {(int)(maxWidth*528),(int)(maxHeight* 212)};
			   ptsts6_2 = new int [] {(int)(maxWidth*546),(int)(maxHeight* 215)};
			

			// ptsts7_1= new int []{(int)(maxWidth*199),(int)(maxHeight*272)};			////19),(int)(maxHeight*20),(int)(maxHeight*21
			// ptsts7_2= new int []{(int)(maxWidth*229),(int)(maxHeight*255)};
			   ptsts7_1 = new int [] {(int)(maxWidth*560),(int)(maxHeight* 212)};
			   ptsts7_2 = new int [] {(int)(maxWidth*578),(int)(maxHeight* 215)};
			

			// ptsts8_1= new int []{(int)(maxWidth*168),(int)(maxHeight*290)};			////22),(int)(maxHeight*23),(int)(maxHeight*24
			// ptsts8_2= new int []{(int)(maxWidth*198),(int)(maxHeight*273)};
			   ptsts8_1 = new int [] {(int)(maxWidth*596),(int)(maxHeight* 212)};
			   ptsts8_2 = new int [] {(int)(maxWidth*613),(int)(maxHeight* 215)};
			  

			// ptsts9_1= new int []{(int)(maxWidth*136),(int)(maxHeight*309)};			////25),(int)(maxHeight*26),(int)(maxHeight*27
			// ptsts9_2= new int []{(int)(maxWidth*167),(int)(maxHeight*291)};
			   ptsts9_1 = new int [] {(int)(maxWidth*627),(int)(maxHeight* 212)};
			   ptsts9_2 = new int [] {(int)(maxWidth*646),(int)(maxHeight* 215)};
			 

			// ptsts10_1= new int []{(int)(maxWidth*103),(int)(maxHeight*328)};		////28),(int)(maxHeight*29),(int)(maxHeight*30
			// ptsts10_2= new int []{(int)(maxWidth*135),(int)(maxHeight*310)};
			   ptsts10_1 = new int [] {(int)(maxWidth*662),(int)(maxHeight* 212)};
			   ptsts10_2 = new int [] {(int)(maxWidth*680),(int)(maxHeight* 215)};
			 

			// ptsts11_1= new int []{(int)(maxWidth*70),(int)(maxHeight*348)};			////31),(int)(maxHeight*32),(int)(maxHeight*33
			// ptsts11_2= new int []{(int)(maxWidth*102),(int)(maxHeight*327)};
			   ptsts11_1 = new int [] {(int)(maxWidth*695),(int)(maxHeight* 212)};
			   ptsts11_2 = new int [] {(int)(maxWidth*713),(int)(maxHeight* 215)};
			 
			// ptsts12_1= new int []{(int)(maxWidth*36),(int)(maxHeight*368)};			////34),(int)(maxHeight*35),(int)(maxHeight*36
			// ptsts12_2= new int []{(int)(maxWidth*69),(int)(maxHeight*349)};
			   ptsts12_1 = new int [] {(int)(maxWidth*729),(int)(maxHeight* 212)};
			   ptsts12_2 = new int [] {(int)(maxWidth*746),(int)(maxHeight* 215)};
			 
			   ptsts2_1_1 = new int []{(int)(maxWidth*361),(int)(maxHeight*357)};
				  ptsts2_1_2 = new int [] {(int)(maxWidth*380),(int)(maxHeight*360)};
				 
				  ptsts2_2_1 = new int [] {(int)(maxWidth*395),(int)(maxHeight* 357)};
				  ptsts2_2_2 = new int [] {(int)(maxWidth*414),(int)(maxHeight* 360)};
				 
				  ptsts2_3_1 = new int [] {(int)(maxWidth*429),(int)(maxHeight* 357)};
				  ptsts2_3_2 = new int [] {(int)(maxWidth*446),(int)(maxHeight* 360)};
				 
				  ptsts2_4_1 = new int [] {(int)(maxWidth*461),(int)(maxHeight* 357)};
				  ptsts2_4_2 = new int [] {(int)(maxWidth*480),(int)(maxHeight* 360)};
				  
				  ptsts2_5_1 = new int [] {(int)(maxWidth*495),(int)(maxHeight* 357)};
				  ptsts2_5_2 = new int [] {(int)(maxWidth*513),(int)(maxHeight* 360)};
				  
				  ptsts2_6_1 = new int [] {(int)(maxWidth*527),(int)(maxHeight* 357)};
				  ptsts2_6_2 = new int [] {(int)(maxWidth*547),(int)(maxHeight* 360)};
				 
				  ptsts2_7_1 = new int [] {(int)(maxWidth*560),(int)(maxHeight* 357)};
				  ptsts2_7_2 = new int [] {(int)(maxWidth*580),(int)(maxHeight* 360)};
				  
				  ptsts2_8_1 = new int [] {(int)(maxWidth*595),(int)(maxHeight* 357)};
				  ptsts2_8_2 = new int [] {(int)(maxWidth*614),(int)(maxHeight* 360)};
				  
				  ptsts2_9_1 = new int [] {(int)(maxWidth*628),(int)(maxHeight* 357)};
				  ptsts2_9_2 = new int [] {(int)(maxWidth*646),(int)(maxHeight* 360)};
				  
				  ptsts2_10_1 = new int [] {(int)(maxWidth*659),(int)(maxHeight* 357)};
				  ptsts2_10_2 = new int [] {(int)(maxWidth*680),(int)(maxHeight* 360)};
				  
				  ptsts2_11_1 = new int [] {(int)(maxWidth*693),(int)(maxHeight* 357)};
				  ptsts2_11_2 = new int [] {(int)(maxWidth*715),(int)(maxHeight* 360)};
				  
				  ptsts2_12_1 = new int [] {(int)(maxWidth*727),(int)(maxHeight* 357)};
				  ptsts2_12_2 = new int [] {(int)(maxWidth*744),(int)(maxHeight* 360)};
				  
				//Third Street

				  ptsts3_1_1 = new int [] {(int)(maxWidth*361),(int)(maxHeight* 285)};
				  ptsts3_1_2 = new int []{(int)(maxWidth*380),(int)(maxHeight* 288)};
				 
				  ptsts3_2_1 = new int []{(int)(maxWidth*393),(int)(maxHeight* 285)};
				  ptsts3_2_2 = new int [] {(int)(maxWidth*414),(int)(maxHeight* 288)};
				 
				  ptsts3_3_1 = new int [] {(int)(maxWidth*429),(int)(maxHeight* 285)};
				  ptsts3_3_2 = new int [] {(int)(maxWidth*447),(int)(maxHeight* 288)};
				 
				  ptsts3_4_1 = new int [] {(int)(maxWidth*461),(int)(maxHeight* 285)};
				  ptsts3_4_2 = new int [] {(int)(maxWidth*480),(int)(maxHeight* 288)};
				 
				  ptsts3_5_1 = new int [] {(int)(maxWidth*493),(int)(maxHeight* 285)};
				  ptsts3_5_2 = new int [] {(int)(maxWidth*513),(int)(maxHeight* 288)};
				 
				  ptsts3_6_1 = new int [] {(int)(maxWidth*527),(int)(maxHeight* 285)};
				  ptsts3_6_2 = new int [] {(int)(maxWidth*547),(int)(maxHeight* 288)};
				 
				  ptsts3_7_1 = new int [] {(int)(maxWidth*560),(int)(maxHeight* 285)};
				  ptsts3_7_2 = new int [] {(int)(maxWidth*580),(int)(maxHeight* 288)};
				 
				  ptsts3_8_1 = new int [] {(int)(maxWidth*595),(int)(maxHeight* 285)};
				  ptsts3_8_2 = new int [] {(int)(maxWidth*614),(int)(maxHeight* 288)};
				 
				  ptsts3_9_1 = new int [] {(int)(maxWidth*628),(int)(maxHeight* 285)};
				  ptsts3_9_2 = new int [] {(int)(maxWidth*646),(int)(maxHeight* 288)};
				  
				  ptsts3_10_1 = new int [] {(int)(maxWidth*659),(int)(maxHeight* 285)};
				  ptsts3_10_2 = new int [] {(int)(maxWidth*680),(int)(maxHeight* 288)};
				  
				  ptsts3_11_1 = new int [] {(int)(maxWidth*693),(int)(maxHeight* 285)};
				  ptsts3_11_2 = new int [] {(int)(maxWidth*715),(int)(maxHeight* 288)};
				 
				  ptsts3_12_1 = new int [] {(int)(maxWidth*729),(int)(maxHeight* 285)};
				  ptsts3_12_2 = new int [] {(int)(maxWidth*744),(int)(maxHeight* 288)};
				    
				  
				  
			  ptrspt0_00_1 = new int[]{(int)(maxWidth* 332),(int)(maxHeight*314)}; //0),(int)(maxHeight*00
			  ptrspt0_00_2 = new int[]{(int)(maxWidth* 347),(int)(maxHeight* 311)};
			  ptrspt0_1_1 = new int[]{(int)(maxWidth* 352),(int)(maxHeight*381)}; //0),(int)(maxHeight*1
			  ptrspt0_1_2 = new int[]{(int)(maxWidth* 355),(int)(maxHeight*413)};
			  
			  ptrspt1_2_1 = new int[] {(int)(maxWidth*385),(int)(maxHeight*376)};
			  ptrspt1_2_2 = new int[] {(int)(maxWidth*388),(int)(maxHeight*411)};
			   
			  ptrspt1_3_1 = new int[] {(int)(maxWidth*419),(int)(maxHeight*382)};
			  ptrspt1_3_2 = new int[] {(int)(maxWidth*422),(int)(maxHeight*410)};
			  
			  ptrspt1_4_1 = new int[] {(int)(maxWidth*452),(int)(maxHeight*382)};
			  ptrspt1_4_2 = new int[] {(int)(maxWidth*455),(int)(maxHeight*410)};
			  
			  ptrspt1_5_1 = new int[] {(int)(maxWidth*485),(int)(maxHeight* 382)};
			  ptrspt1_5_2 = new int[] {(int)(maxWidth*488),(int)(maxHeight* 410)};
			  
			  ptrspt1_6_1 = new int[] {(int)(maxWidth*519),(int)(maxHeight* 382)};
			  ptrspt1_6_2 = new int[] {(int)(maxWidth*521),(int)(maxHeight* 410)};
			  
			  ptrspt1_7_1 = new int[] {(int)(maxWidth*551),(int)(maxHeight* 382)};
			  ptrspt1_7_2 = new int[] {(int)(maxWidth*554),(int)(maxHeight* 410)};
			  
			  ptrspt1_8_1 = new int[] {(int)(maxWidth*584),(int)(maxHeight* 382)};
			  ptrspt1_8_2 = new int[] {(int)(maxWidth*587),(int)(maxHeight* 410)};
			  
			  ptrspt1_9_1 = new int[] {(int)(maxWidth*619),(int)(maxHeight* 382)};
			  ptrspt1_9_2 = new int[] {(int)(maxWidth*621),(int)(maxHeight* 410)};
			  
			  ptrspt1_10_1 = new int[] {(int)(maxWidth*651),(int)(maxHeight* 382)};
			  ptrspt1_10_2 = new int[] {(int)(maxWidth*654),(int)(maxHeight* 410)};
			  
			  ptrspt1_11_1 = new int[] {(int)(maxWidth*684),(int)(maxHeight* 382)};
			  ptrspt1_11_2 = new int[] {(int)(maxWidth*687),(int)(maxHeight* 410)};
			  
			  ptrspt1_12_1 = new int[] {(int)(maxWidth*717),(int)(maxHeight* 382)};
			  ptrspt1_12_2 = new int[] {(int)(maxWidth*720),(int)(maxHeight* 410)};
			  
			////Second row Split


			  ptrspt2_2_1 = new int[] {(int)(maxWidth*385),(int)(maxHeight*306)};
			  ptrspt2_2_2 = new int[] {(int)(maxWidth*388),(int)(maxHeight*339)};
			  
			  ptrspt2_3_1 = new int[] {(int)(maxWidth*419),(int)(maxHeight* 306)};
			  ptrspt2_3_2 = new int[] {(int)(maxWidth*421),(int)(maxHeight* 339)};
			  
			  ptrspt2_4_1 = new int[] {(int)(maxWidth*451),(int)(maxHeight* 306)};
			  ptrspt2_4_2 = new int[] {(int)(maxWidth*454),(int)(maxHeight* 339)};
			  
			  ptrspt2_5_1 = new int[] {(int)(maxWidth*485),(int)(maxHeight* 306)};
			  ptrspt2_5_2 = new int[] {(int)(maxWidth*488),(int)(maxHeight* 339)};
			  
			  ptrspt2_6_1 = new int[] {(int)(maxWidth*519),(int)(maxHeight* 306)};
			  ptrspt2_6_2 = new int[] {(int)(maxWidth*521),(int)(maxHeight* 339)};
			  
			  ptrspt2_7_1 = new int[] {(int)(maxWidth*551),(int)(maxHeight* 306)};
			  ptrspt2_7_2 = new int[] {(int)(maxWidth*554),(int)(maxHeight* 339)};
			  
			  ptrspt2_8_1 = new int[] {(int)(maxWidth*584),(int)(maxHeight* 306)};
			  ptrspt2_8_2 = new int[] {(int)(maxWidth*587),(int)(maxHeight* 339)};
			  
			  ptrspt2_9_1 = new int[] {(int)(maxWidth*619),(int)(maxHeight* 306)};
			  ptrspt2_9_2 = new int[] {(int)(maxWidth*621),(int)(maxHeight* 339)};
			  
			  ptrspt2_10_1 = new int[] {(int)(maxWidth*651),(int)(maxHeight* 306)};
			  ptrspt2_10_2 = new int[] {(int)(maxWidth*654),(int)(maxHeight* 339)};
			  
			  ptrspt2_11_1 = new int[] {(int)(maxWidth*684),(int)(maxHeight* 306)};
			  ptrspt2_11_2 = new int[] {(int)(maxWidth*687),(int)(maxHeight* 339)};
			  
			  ptrspt2_12_1 = new int[] {(int)(maxWidth*717),(int)(maxHeight* 306)};
			  ptrspt2_12_2 = new int[] {(int)(maxWidth*720),(int)(maxHeight* 339)};
			  
			////Third row Split

			  ptrspt3_1_1 = new int[] {(int)(maxWidth*352),(int)(maxHeight*235)};
			  ptrspt3_1_2 = new int[] {(int)(maxWidth*355),(int)(maxHeight*270)};
			  
			  ptrspt3_2_1 = new int[] {(int)(maxWidth*385),(int)(maxHeight* 235)};
			  ptrspt3_2_2 = new int[] {(int)(maxWidth*388),(int)(maxHeight* 270)};
			  
			  ptrspt3_3_1 = new int[] {(int)(maxWidth*418),(int)(maxHeight* 235)};
			  ptrspt3_3_2 = new int[] {(int)(maxWidth*421),(int)(maxHeight* 270)};
			  
			  ptrspt3_4_1 = new int[] {(int)(maxWidth*451),(int)(maxHeight* 235)};
			  ptrspt3_4_2 = new int[] {(int)(maxWidth*454),(int)(maxHeight* 270)};
			 
			  ptrspt3_5_1 = new int[] {(int)(maxWidth*485),(int)(maxHeight* 235)};
			  ptrspt3_5_2 = new int[] {(int)(maxWidth*488),(int)(maxHeight* 270)};
			  
			  ptrspt3_6_1 = new int[] {(int)(maxWidth*518),(int)(maxHeight* 235)};
			  ptrspt3_6_2 = new int[] {(int)(maxWidth*521),(int)(maxHeight* 270)};
			  
			  ptrspt3_7_1 = new int[] {(int)(maxWidth*551),(int)(maxHeight* 235)};
			  ptrspt3_7_2 = new int[] {(int)(maxWidth*554),(int)(maxHeight* 270)};
			  
			  ptrspt3_8_1 = new int[] {(int)(maxWidth*584),(int)(maxHeight* 235)};
			  ptrspt3_8_2 = new int[] {(int)(maxWidth*587),(int)(maxHeight* 270)};
			  
			  ptrspt3_9_1 = new int[] {(int)(maxWidth*618),(int)(maxHeight* 235)};
			  ptrspt3_9_2 = new int[] {(int)(maxWidth*621),(int)(maxHeight* 270)};
			  
			  ptrspt3_10_1 = new int[] {(int)(maxWidth*651),(int)(maxHeight* 235)};
			  ptrspt3_10_2 = new int[] {(int)(maxWidth*654),(int)(maxHeight* 270)};
			  
			  ptrspt3_11_1 = new int[] {(int)(maxWidth*684),(int)(maxHeight* 235)};
			  ptrspt3_11_2 = new int[] {(int)(maxWidth*687),(int)(maxHeight* 270)};
			  
			  ptrspt3_12_1 = new int[] {(int)(maxWidth*717),(int)(maxHeight* 235)};
			  ptrspt3_12_2 = new int[] {(int)(maxWidth*720),(int)(maxHeight* 270)};
			 
			  ptrspt2_2_0_1 = new int[] {(int)(maxWidth*352),(int)(maxHeight*306)};
			  ptrspt2_2_0_2 = new int[] {(int)(maxWidth*355),(int)(maxHeight*334)};
			  

			//  public static int[] ptrspt2_1_1 = {(int)(maxWidth*//		      436),(int)(maxHeight* 181)};
			//  public static int[] ptrspt2_1_2 = {(int)(maxWidth*//		      474),(int)(maxHeight* 204)};
			//  public static int[][] rspt13 = {(int)(maxWidth*//		      ptrspt2_1_1),(int)(maxHeight* ptrspt2_1_2)};//for 0),(int)(maxHeight*2

			  ptrspt2_2_00_1 = new int[]{(int)(maxWidth*352),(int)(maxHeight*306)};
			  ptrspt2_2_00_2 = new int[]{(int)(maxWidth*355),(int)(maxHeight*335)};

			  rc_0_00_1_2_3= new int[][]{{(int)(maxWidth*351),(int)(maxHeight*431)},{(int)(maxWidth*354),(int)(maxHeight*422)}};//for 0),(int)(maxHeight*00),(int)(maxHeight*1),(int)(maxHeight*2),(int)(maxHeight*3


				////selecting StreetPairs i.e 6 numbers= new int[]{2 streets}

				 rcstpair1= new int[][]{{(int)(maxWidth*385),(int)(maxHeight*431)},{(int)(maxWidth*388),(int)(maxHeight*422)}};//1 to 6
				 rcstpair2= new int[][]{{(int)(maxWidth*418),(int)(maxHeight*431)},{(int)(maxWidth*421),(int)(maxHeight*422)}};//4 to 9
				 rcstpair3= new int[][]{{(int)(maxWidth*452),(int)(maxHeight*431)},{(int)(maxWidth*455),(int)(maxHeight*422)}};//7 to 12
				 rcstpair4= new int[][]{{(int)(maxWidth*485),(int)(maxHeight*431)},{(int)(maxWidth*488),(int)(maxHeight*422)}};//10 to 15
				 rcstpair5= new int[][]{{(int)(maxWidth*518),(int)(maxHeight*431)},{(int)(maxWidth*521),(int)(maxHeight*422)}};//13 to 18
				 rcstpair6= new int[][]{{(int)(maxWidth*551),(int)(maxHeight*431)},{(int)(maxWidth*554),(int)(maxHeight*422)}};//16 to 21
				 rcstpair7= new int[][]{{(int)(maxWidth*583),(int)(maxHeight*431)},{(int)(maxWidth*587),(int)(maxHeight*422)}};//19 to 24
				 rcstpair8= new int[][]{{(int)(maxWidth*618),(int)(maxHeight*431)},{(int)(maxWidth*621),(int)(maxHeight*422)}};//22 to 27
				 rcstpair9= new int[][]{{(int)(maxWidth*650),(int)(maxHeight*431)},{(int)(maxWidth*653),(int)(maxHeight*422)}};//25 to 30
				 rcstpair10= new int[][]{{(int)(maxWidth*683),(int)(maxHeight*431)},{(int)(maxWidth*687),(int)(maxHeight*422)}};//28 to 33
				 rcstpair11= new int[][]{{(int)(maxWidth*718),(int)(maxHeight*431)},{(int)(maxWidth*721),(int)(maxHeight*422)}};//31 to 36
  }
  private void resetPolyPts() 
  {
	  p01= new int[]{352,217};
	  p02= new int[]{323,217};
	  p03= new int[]{323,432};
	  p04= new int[]{352,432};
	 
	  p001= new int[]{328,391};
	  p002= new int[]{344,383};
	  p003= new int[]{345,409};
	  p004= new int[]{328,414};


	  p11= new int[]{384,362};
	  p12= new int[]{357,362};
	  p13= new int[]{357,428};
	  p14= new int[]{384,428};

	  p21= new int[]{384,291};
	  p22= new int[]{357,291};
	  p23= new int[]{357,356};
	  p24= new int[]{384,356};

	  p31= new int[]{384,219};
	  p32= new int[]{357,219};
	  p33= new int[]{357,285};
	  p34= new int[]{384,285};

	  p41= new int[]{417,362};
	  p42= new int[]{390,362};
	  p43= new int[]{390,426};
	  p44= new int[]{417,426};

	  p51= new int[]{417,290};
	  p52= new int[]{390,290};
	  p53= new int[]{390,356};
	  p54= new int[]{417,356};

	  p61= new int[]{417,219};
	  p62= new int[]{389,219};
	  p63= new int[]{390,285};
	  p64= new int[]{417,284};

	  p71= new int[]{451,362};
	  p72= new int[]{423,362};
	  p73= new int[]{423,427};
	  p74= new int[]{451,427};

	  p81= new int[]{451,290};
	  p82= new int[]{423,290};
	  p83= new int[]{423,356};
	  p84= new int[]{451,356};

	  p91= new int[]{451,219};
	  p92= new int[]{423,219};
	  p93= new int[]{423,284};
	  p94= new int[]{451,284};

	  p101= new int[]{484,362};
	  p102= new int[]{457,362};
	  p103= new int[]{457,427};
	  p104= new int[]{484,427};

	  p111= new int[]{484,290};
	  p112= new int[]{457,290};
	  p113= new int[]{457,356};
	  p114= new int[]{484,356};

	  p121= new int[]{484,219};
	  p122= new int[]{457,219};
	  p123= new int[]{457,284};
	  p124= new int[]{484,284};

	  p131= new int[]{517,362};
	  p132= new int[]{490,362};
	  p133= new int[]{490,427};
	  p134= new int[]{517,427};

	  p141= new int[]{517,290};
	  p142= new int[]{490,290};
	  p143= new int[]{490,356};
	  p144= new int[]{517,356};

	  p151= new int[]{517,219};
	  p152= new int[]{490,219};
	  p153= new int[]{490,284};
	  p154= new int[]{517,284};

	  p161= new int[]{551,362};
	  p162= new int[]{523,362};
	  p163= new int[]{523,427};
	  p164= new int[]{551,427};

	  p171= new int[]{550,291};
	  p172= new int[]{523,291};
	  p173= new int[]{523,356};
	  p174= new int[]{550,356};

	  p181= new int[]{551,219};
	  p182= new int[]{523,219};
	  p183= new int[]{523,284};
	  p184= new int[]{551,284};

	  p191= new int[]{584,362};
	  p192= new int[]{556,362};
	  p193= new int[]{556,427};
	  p194= new int[]{584,427};

	  p201= new int[]{584,290};
	  p202= new int[]{557,290};
	  p203= new int[]{557,356};
	  p204= new int[]{584,356};

	  p211= new int[]{584,219};
	  p212= new int[]{557,219};
	  p213= new int[]{557,284};
	  p214= new int[]{584,284};

	  p221= new int[]{616,362};
	  p222= new int[]{590,362};
	  p223= new int[]{590,427};
	  p224= new int[]{616,427};
	  
	  p231= new int[]{617,290};
	  p232= new int[]{590,290};
	  p233= new int[]{590,356};
	  p234= new int[]{617,356};


	  p241= new int[]{617,219};
	  p242= new int[]{590,219};
	  p243= new int[]{590,284};
	  p244= new int[]{617,284};

	  p251= new int[]{651,362};
	  p252= new int[]{623,361};
	  p253= new int[]{623,428};
	  p254= new int[]{651,428};

	  p261= new int[]{650,290};
	  p262= new int[]{623,290};
	  p263= new int[]{623,356};
	  p264= new int[]{650,356};

	  p271= new int[]{651,219};
	  p272= new int[]{623,219};
	  p273= new int[]{623,284};
	  p274= new int[]{651,284};

	  p281= new int[]{684,362};
	  p282= new int[]{657,362};
	  p283= new int[]{657,427};
	  p284= new int[]{684,427};

	  p291= new int[]{684,290};
	  p292= new int[]{657,290};
	  p293= new int[]{656,356};
	  p294= new int[]{684,356};

	  p301= new int[]{684,219};
	  p302= new int[]{657,219};
	  p303= new int[]{657,284};
	  p304= new int[]{684,284};

	  p311= new int[]{717,362};
	  p312= new int[]{690,362};
	  p313= new int[]{690,427};
	  p314= new int[]{717,427};

	  p321= new int[]{717,290};
	  p322= new int[]{690,290};
	  p323= new int[]{690,356};
	  p324= new int[]{717,356};

	  p331= new int[]{718,219};
	  p332= new int[]{690,219};
	  p333= new int[]{690,284};
	  p334= new int[]{718,284};

	  p341= new int[]{750,362};
	  p342= new int[]{723,362};
	  p343= new int[]{723,427};
	  p344= new int[]{750,427};

	  p351= new int[]{750,290};
	  p352= new int[]{723,290};
	  p353= new int[]{723,356};
	  p354= new int[]{750,356};

	  p361= new int[]{750,219};
	  p362= new int[]{723,219};
	  p363= new int[]{723,284};
	  p364= new int[]{750,284};


	  p1_2to1_1= new int[]{787,360};
	  p1_2to1_2= new int[]{754,360};
	  p1_2to1_3= new int[]{754,432};
	  p1_2to1_4= new int[]{787,432};

	  p2_2to1_1= new int[]{787,288};
	  p2_2to1_2= new int[]{754,288};
	  p2_2to1_3= new int[]{754,360};
	  p2_2to1_4= new int[]{787,360};

	  p3_2to1_1= new int[]{787,217};
	  p3_2to1_2= new int[]{754,217};
	  p3_2to1_3= new int[]{754,288};
	  p3_2to1_4= new int[]{787,288};


	  p3_12_1= new int[]{755,433};
	  p3_12_2= new int[]{621,433};
	  p3_12_3= new int[]{621,478};
	  p3_12_4= new int[]{755,478};

	  p2_12_1= new int[]{621,432};
	  p2_12_2= new int[]{488,432};
	  p2_12_3= new int[]{488,478};
	  p2_12_4= new int[]{621,478};

	  p1_12_1= new int[]{488,432};
	  p1_12_2= new int[]{355,432};
	  p1_12_3= new int[]{355,478};
	  p1_12_4= new int[]{488,478};

	  p19_36_1= new int[]{754,478};
	  p19_36_2= new int[]{688,478};
	  p19_36_3= new int[]{688,524};
	  p19_36_4= new int[]{754,524};

	  pODD_1= new int[]{688,478};
	  pODD_2= new int[]{622,478};
	  pODD_3= new int[]{622,524};
	  pODD_4= new int[]{688,524};

	  pRED_1= new int[]{621,478};
	  pRED_2= new int[]{555,478};
	  pRED_3= new int[]{555,524};
	  pRED_4= new int[]{621,524};

	  pBLACK_1= new int[]{555,478};
	  pBLACK_2= new int[]{488,478};
	  pBLACK_3= new int[]{488,524};
	  pBLACK_4= new int[]{555,524};

	  pEVEN1= new int[]{488,478};
	  pEVEN2= new int[]{422,478};
	  pEVEN3= new int[]{422,524};
	  pEVEN4= new int[]{488,524};

	  p1_18_1= new int[]{422,478};
	  p1_18_2= new int[]{355,478};
	  p1_18_3= new int[]{355,524};
	  p1_18_4= new int[]{422,524};
	  
	  region_coords = new int[][] {{318,292},{359,382},{358,317},{359,243},{393,382},{392,317},{392,243},
		      {426,382},{425,317},{425,243},{458,382},{458,317},{461,243},{492,382},//13
		      {491,317},{491,243},{525,382},{524,317},{524,243},{557,382},{557,317},//20
		      {558,243},{591,382},{591,317},{591,243},{626,382},{625,317},{625,243},//27
		      {656,382},{657,317},{657,243},{689,382},{692,317},{692,243},{725,382},//34
		      {724,317},{725,243},{318,292},														// 0 - 37		type 1
		      
		      {757,379},{758,309},{760,242}													//type 8   38-40
		      ,{635,437},{505,435},{375,438}												//type 7    41- 43
		      ,{697,487},{629,484},{563,485},{494,487},{427,486},{360,484},			//type 0    44-49
		      
		      {359,351},{393,349},{426,349},{461,349},{494,349},{527,350},
		      {560,349},{594,349},{629,349},{660,349},{694,349},{727,348},
		      {359,276},{393,276},{426,276},{461,276},{494,276},{527,276},
		      {560,276},{594,276},{629,276},{660,276},{694,276},{727,276},		//type 2    reg 50 - 73
		      
		      {318,292},							//74
		      {347,382}                         		 //75
		      
		      ,{380,384},{413,384},{447,384},{479,384},{510,384},					
		      {548,384},{579,384},{614,384},{648,384},{680,384},{713,384},			//76-86
		      
		      {348,310},//87
		      {380,308},{413,308},{447,308},{479,308},{510,308},
		      {548,308},{579,308},{614,308},{648,308},{680,308},{713,308},				//88-98   type 2  
		      
		      
		      {348,239},                                         //99
		      {380,240},{413,240},{447,240},{479,240},{510,240},
		      {548,240},{579,240},{614,240},{648,240},{680,240},{713,240} 	//100-110
		      
		      ,{349,313},{349,313},{348,352},{347,282},									//111-114
		      
		      
		      {360,201},{395,201},{429,201},{460,201},{493,201},{529,201},
		      {559,201},{594,201},{627,201},{661,201},{694,201},{727,201},           //type 3  reg 115-126
		      
		      
		      
		      {382,352},{416,352},{445,352},{480,352},{513,352},{546,352},						
		      {581,352},{613,352},{647,352},{680,352},{713,352},    
		      
		      {382,280},{416,280},{445,280},{480,280},{513,280},{546,280},
		      {581,280},{613,280},{647,280},{680,280},{713,280},					//127-149
		          
		      {382,425},{416, 425},{445, 425},{480, 425},{513, 425},
		      {546, 425},{581, 425},{613, 425},{647, 425},{680, 425},{713, 425},								//150-160
		          {348, 425}    //161
		  };

	  cor1 = new int [][] {{
		  388,352}, {388,366}}; /////For1,2,4,5

	  cor2 = new int [][] {{
		  421,352},{ 421,366}}; /////For 4,5,7,8

	  cor3 = new int [][] {{
		  454, 352},{ 454, 366}}; /////For 7,8,10,11

	  cor4 = new int [][] {{
		  488, 352},{ 488, 366}}; /////For 10,11,13,14

	  cor5 = new int [][] {{
		  521, 352},{ 521, 366}}; /////For 13,14,16,17

	  cor6 = new int [][] {{
		  554, 352},{ 554, 366}}; /////For 16,17,19,20

	  cor7 = new int [][] {{
		  587, 352},{ 587, 366}}; /////For 19,20,22,23

	  cor8 = new int [][] {{
		  621, 352},{ 621, 366}}; /////For 22,23,25,26

	  cor9 = new int [][] {{
		  654, 352},{ 654, 366}}; /////For 25,26,28,29

	  cor10 = new int [][] {{
		  687, 352},{ 687, 366}}; /////For 28,29,31,32

	  cor11 = new int [][] {{
		  720, 352},{ 720, 366}}; /////For 31,32,34,35

	  cor12 = new int [][] {{
		  388,281},{ 388,293}}; /////For 2,3,5,6

	  cor13 = new int [][] {{
		  421,281},{ 421,293}}; /////For 5,6,8,9

	  cor14 = new int [][] {{
	      454, 281},{ 454, 293}}; /////For 8,9,11,12

	  cor15 = new int [][] {{
	      488, 281},{ 488, 293}}; /////For 11,12,14,15

	  cor16 = new int [][] {{
	      521, 281},{ 521, 293}}; /////For 14,15,17,18

	  cor17 = new int [][] {{
	      554, 281},{ 554, 293}}; /////For 17,18,20,21

	  cor18 = new int [][] {{
	      587, 281},{ 587, 293}}; /////For 20,21,23,24

	  cor19 = new int [][] {{
	      621, 281},{ 621, 293}}; /////For 23,24,26,27

	  cor20 = new int [][] {{
	      654, 281},{ 654, 293}}; /////For 26,27,29,30

	  cor21 = new int [][] {{
	      687, 281},{ 687, 293}}; /////For 29,30,32,33

	  cor22 = new int [][] {{
	      720, 281},{ 720, 293}}; /////For 32,33,35,36
	  
	  
	  rc2_0_00= new int [][] {{356,314},{356,337}};//for 0,00,2
	  rc_0_1_2= new int [][] {{356,355},{356,368}};//for 0,1,2
	  rc_00_2_3= new int [][] {{356,281},{356,297}};//for 00,2,3
	  
	  
	//public static final int[] ptsts1_1={(int)(maxWidth*371),(int)(maxHeight*170)};             ////1),(int)(maxHeight*2),(int)(maxHeight*3
		//public static final int[] ptsts1_2={(int)(maxWidth*396),(int)(maxHeight*155)};
	  ptsts1_1 = new int [] {
			  361,215};
		   ptsts1_2 = new int [] {
			  378,215};
		 

		// ptst= new int [] new int []2_1= new int []{343,186};            ////4,5,6
		// ptsts2_2= new int []{371,170};
		   ptsts2_1 = new int [] {
			  394, 215};
		   ptsts2_2 = new int [] {
			  412, 215};
		  

		// ptsts3_1= new int []{317,202};			  ////7,8,9
		// ptsts3_2= new int []{343,187};
		   ptsts3_1 = new int [] {
			  428, 215};
		   ptsts3_2 = new int [] {
		      443, 215};
		 
		// ptsts4_1= new int []{288,219};			////10,11,12
		// ptsts4_2= new int []{316,203};
		   ptsts4_1 = new int [] {
		      459, 215};
		   ptsts4_2 = new int [] {
		      477, 215};
		 

		// ptsts5_1= new int []{259,236};			////13,14,15
		// ptsts5_2= new int []{287,220};
		   ptsts5_1 = new int [] {
		      494, 215};
		   ptsts5_2 = new int [] {
		      513, 215};
		
		// ptsts6_1= new int []{230,254};			////16,17,18
		// ptsts6_2= new int []{258,237};
		   ptsts6_1 = new int [] {
		      528, 215};
		   ptsts6_2 = new int [] {
		      546, 215};
		

		// ptsts7_1= new int []{199,272};			////19,20,21
		// ptsts7_2= new int []{229,255};
		   ptsts7_1 = new int [] {
		      560, 215};
		   ptsts7_2 = new int [] {
		      578, 215};
		

		// ptsts8_1= new int []{168,290};			////22,23,24
		// ptsts8_2= new int []{198,273};
		   ptsts8_1 = new int [] {
		      596, 215};
		   ptsts8_2 = new int [] {
		      513, 215};
		  

		// ptsts9_1= new int []{136,309};			////25,26,27
		// ptsts9_2= new int []{167,291};
		   ptsts9_1 = new int [] {
		      627, 215};
		   ptsts9_2 = new int [] {
		      646, 215};
		 

		// ptsts10_1= new int []{103,328};		////28,29,30
		// ptsts10_2= new int []{135,310};
		   ptsts10_1 = new int [] {
		      662, 215};
		   ptsts10_2 = new int [] {
		      680, 215};
		 

		// ptsts11_1= new int []{70,348};			////31,32,33
		// ptsts11_2= new int []{102,327};
		   ptsts11_1 = new int [] {
		      695, 215};
		   ptsts11_2 = new int [] {
		      713, 215};
		 
		// ptsts12_1= new int []{36,368};			////34,35,36
		// ptsts12_2= new int []{69,349};
		   ptsts12_1 = new int [] {
		      729, 215};
		   ptsts12_2 = new int [] {
		      746, 215};
		 
		   ptsts2_1_1 = new int []{
				  361,360};
			  ptsts2_1_2 = new int [] {
				  380,360};
			 
			  ptsts2_2_1 = new int [] {
				  395, 360};
			  ptsts2_2_2 = new int [] {
			      414, 360};
			 
			  ptsts2_3_1 = new int [] {
				  429, 360};
			  ptsts2_3_2 = new int [] {
				  446, 360};
			 
			  ptsts2_4_1 = new int [] {
				  461, 360};
			  ptsts2_4_2 = new int [] {
				  480, 360};
			  
			  ptsts2_5_1 = new int [] {
				  495, 360};
			  ptsts2_5_2 = new int [] {
				  513, 360};
			  
			  ptsts2_6_1 = new int [] {
				  527, 360};
			  ptsts2_6_2 = new int [] {
				  547, 360};
			 
			  ptsts2_7_1 = new int [] {
				  560, 360};
			  ptsts2_7_2 = new int [] {
				  580, 360};
			  
			  ptsts2_8_1 = new int [] {
				  595, 360};
			  ptsts2_8_2 = new int [] {
				  614, 360};
			  
			  ptsts2_9_1 = new int [] {
				  628, 360};
			  ptsts2_9_2 = new int [] {
				  646, 360};
			  
			  ptsts2_10_1 = new int [] {
				  659, 360};
			  ptsts2_10_2 = new int [] {
				  680, 360};
			  
			  ptsts2_11_1 = new int [] {
				  693, 360};
			  ptsts2_11_2 = new int [] {
				  715, 360};
			  
			  ptsts2_12_1 = new int [] {
				  727, 360};
			  ptsts2_12_2 = new int [] {
				  744, 360};
			  
			//Third Street

			  ptsts3_1_1 = new int [] {
			      361, 288};
			  ptsts3_1_2 = new int []{
			      380, 288};
			 
			  ptsts3_2_1 = new int []{
			      393, 288};
			  ptsts3_2_2 = new int [] {
			      414, 288};
			 
			  ptsts3_3_1 = new int [] {
			      429, 288};
			  ptsts3_3_2 = new int [] {
			      447, 288};
			 
			  ptsts3_4_1 = new int [] {
			      461, 288};
			  ptsts3_4_2 = new int [] {
			      480, 288};
			 
			  ptsts3_5_1 = new int [] {
			      493, 288};
			  ptsts3_5_2 = new int [] {
			      513, 288};
			 
			  ptsts3_6_1 = new int [] {
			      527, 288};
			  ptsts3_6_2 = new int [] {
			      547, 288};
			 
			  ptsts3_7_1 = new int [] {
			      560, 288};
			  ptsts3_7_2 = new int [] {
			      580, 288};
			 
			  ptsts3_8_1 = new int [] {
			      595, 288};
			  ptsts3_8_2 = new int [] {
			      614, 288};
			 
			  ptsts3_9_1 = new int [] {
			      628, 288};
			  ptsts3_9_2 = new int [] {
			      646, 288};
			  
			  ptsts3_10_1 = new int [] {
			      659, 288};
			  ptsts3_10_2 = new int [] {
			      680, 288};
			  
			  ptsts3_11_1 = new int [] {
			      693, 288};
			  ptsts3_11_2 = new int [] {
			      715, 288};
			 
			  ptsts3_12_1 = new int [] {
			      729, 288};
			  ptsts3_12_2 = new int [] {
			      744, 288};
			    
			  
			  
		  ptrspt0_00_1 = new int[]{ 332,314}; //0,00
		  ptrspt0_00_2 = new int[]{ 347, 311};
		  ptrspt0_1_1 = new int[]{ 355,381}; //0,1
		  ptrspt0_1_2 = new int[]{ 355,413};
		  
		  ptrspt1_2_1 = new int[] {
			  388,376};
		  ptrspt1_2_2 = new int[] {
			  388,411};
		   
		  ptrspt1_3_1 = new int[] {
			  422,382};
		  ptrspt1_3_2 = new int[] {
			  422,410};
		  
		  ptrspt1_4_1 = new int[] {
			  455,382};
		  ptrspt1_4_2 = new int[] {
			  455,410};
		  
		  ptrspt1_5_1 = new int[] {
			  488, 382};
		  ptrspt1_5_2 = new int[] {
			  488, 410};
		  
		  ptrspt1_6_1 = new int[] {
			  521, 382};
		  ptrspt1_6_2 = new int[] {
			  521, 410};
		  
		  ptrspt1_7_1 = new int[] {
		      554, 382};
		  ptrspt1_7_2 = new int[] {
		      554, 410};
		  
		  ptrspt1_8_1 = new int[] {
		      587, 382};
		  ptrspt1_8_2 = new int[] {
		      587, 410};
		  
		  ptrspt1_9_1 = new int[] {
		      621, 382};
		  ptrspt1_9_2 = new int[] {
		      621, 410};
		  
		  ptrspt1_10_1 = new int[] {
		      654, 382};
		  ptrspt1_10_2 = new int[] {
		      654, 410};
		  
		  ptrspt1_11_1 = new int[] {
		      687, 382};
		  ptrspt1_11_2 = new int[] {
		      687, 410};
		  
		  ptrspt1_12_1 = new int[] {
		      720, 382};
		  ptrspt1_12_2 = new int[] {
		      720, 410};
		  
		////Second row Split


		  ptrspt2_2_1 = new int[] {
			  388,306};
		  ptrspt2_2_2 = new int[] {
			  388,339};
		  
		  ptrspt2_3_1 = new int[] {
		      421, 306};
		  ptrspt2_3_2 = new int[] {
		      421, 339};
		  
		  ptrspt2_4_1 = new int[] {
		      454, 306};
		  ptrspt2_4_2 = new int[] {
		      454, 339};
		  
		  ptrspt2_5_1 = new int[] {
		      488, 306};
		  ptrspt2_5_2 = new int[] {
		      488, 339};
		  
		  ptrspt2_6_1 = new int[] {
		      521, 306};
		  ptrspt2_6_2 = new int[] {
		      521, 339};
		  
		  ptrspt2_7_1 = new int[] {
		      554, 306};
		  ptrspt2_7_2 = new int[] {
		      554, 339};
		  
		  ptrspt2_8_1 = new int[] {
		      587, 306};
		  ptrspt2_8_2 = new int[] {
		      587, 339};
		  
		  ptrspt2_9_1 = new int[] {
		      621, 306};
		  ptrspt2_9_2 = new int[] {
		      621, 339};
		  
		  ptrspt2_10_1 = new int[] {
		      654, 306};
		  ptrspt2_10_2 = new int[] {
		      654, 339};
		  
		  ptrspt2_11_1 = new int[] {
		      687, 306};
		  ptrspt2_11_2 = new int[] {
		      687, 339};
		  
		  ptrspt2_12_1 = new int[] {
		      720, 306};
		  ptrspt2_12_2 = new int[] {
		      720, 339};
		  
		////Third row Split

		  ptrspt3_1_1 = new int[] {
			  355,235};
		  ptrspt3_1_2 = new int[] {
			  355,270};
		  
		  ptrspt3_2_1 = new int[] {
		      388, 235};
		  ptrspt3_2_2 = new int[] {
		      388, 270};
		  
		  ptrspt3_3_1 = new int[] {
		      421, 235};
		  ptrspt3_3_2 = new int[] {
		      421, 270};
		  
		  ptrspt3_4_1 = new int[] {
		      454, 235};
		  ptrspt3_4_2 = new int[] {
		      454, 270};
		 
		  ptrspt3_5_1 = new int[] {
		      488, 235};
		  ptrspt3_5_2 = new int[] {
		      488, 270};
		  
		  ptrspt3_6_1 = new int[] {
		      521, 235};
		  ptrspt3_6_2 = new int[] {
		      521, 270};
		  
		  ptrspt3_7_1 = new int[] {
		      554, 235};
		  ptrspt3_7_2 = new int[] {
		      554, 270};
		  
		  ptrspt3_8_1 = new int[] {
		      587, 235};
		  ptrspt3_8_2 = new int[] {
		      587, 270};
		  
		  ptrspt3_9_1 = new int[] {
		      621, 235};
		  ptrspt3_9_2 = new int[] {
		      621, 270};
		  
		  ptrspt3_10_1 = new int[] {
		      654, 235};
		  ptrspt3_10_2 = new int[] {
		      654, 270};
		  
		  ptrspt3_11_1 = new int[] {
		      687, 235};
		  ptrspt3_11_2 = new int[] {
		      687, 270};
		  
		  ptrspt3_12_1 = new int[] {
		      720, 235};
		  ptrspt3_12_2 = new int[] {
		      720, 270};
		 
		  ptrspt2_2_0_1 = new int[] {
			  355,306};
		  ptrspt2_2_0_2 = new int[] {
			  355,334};
		  

		//  public static int[] ptrspt2_1_1 = {
//		      436, 181};
		//  public static int[] ptrspt2_1_2 = {
//		      474, 204};
		//  public static int[][] rspt13 = {
//		      ptrspt2_1_1, ptrspt2_1_2};//for 0,2

		  ptrspt2_2_00_1 = new int[]{
				  355,306};
		  ptrspt2_2_00_2 = new int[]{
				  355,335};
	  
		  rc_0_00_1_2_3= new int[][]{{354,431},{354,422}};//for 0,00,1,2,3


			////selecting StreetPairs i.e 6 numbers= new int[]{2 streets}

			 rcstpair1= new int[][]{{385,431},{388,422}};//1 to 6
			 rcstpair2= new int[][]{{418,431},{421,422}};//4 to 9
			 rcstpair3= new int[][]{{452,431},{455,422}};//7 to 12
			 rcstpair4= new int[][]{{485,431},{488,422}};//10 to 15
			 rcstpair5= new int[][]{{518,431},{521,422}};//13 to 18
			 rcstpair6= new int[][]{{551,431},{554,422}};//16 to 21
			 rcstpair7= new int[][]{{584,431},{587,422}};//19 to 24
			 rcstpair8= new int[][]{{618,431},{621,422}};//22 to 27
			 rcstpair9= new int[][]{{650,431},{653,422}};//25 to 30
			 rcstpair10= new int[][]{{684,431},{687,422}};//28 to 33
			 rcstpair11= new int[][]{{718,431},{721,422}};//31 to 36
  }
  public static int[][] getRegPoints(int reg)
  {
	  //System.out.println(" p1_18_4  "+p1_18_4[0]);
	  return REG_POINTS[reg];
  }
  
  
}
